16 lines
248 B
Markdown
16 lines
248 B
Markdown
|
|
# Literate App Example
|
||
|
|
|
||
|
|
This example explains the helper before showing the application entry point.
|
||
|
|
|
||
|
|
```python {#helpers}
|
||
|
|
def helper():
|
||
|
|
return "ready"
|
||
|
|
```
|
||
|
|
|
||
|
|
```python {#main tangle="src/app.py"}
|
||
|
|
<<helpers>>
|
||
|
|
|
||
|
|
def main():
|
||
|
|
return helper()
|
||
|
|
```
|