Skip to main content
app.py
------
from flask import Flask
from flask_yamlpage import FlaskYamlPage


app = Flask(__name__)
yamlpages = FlaskYamlPage(app)


@app.route('/')
def index():
return 'index'


if __name__ == '__main__':
app.run(debug=True, port=8000)


yamlpages/#test#.yml
-------------------
title: test yamlpage
body: |
Yamlpage
========
Hello, world!
{{ url_for('index') }}


templates/yamlpage.html
-----------------------
<title>{{ page.title }}</title>

{{ page.body | render | markdown | safe }}


config defaults
---------------
'YAMLPAGE_CONTENT_DIR' : './yamlpages',
'YAMLPAGE_DEFAULT_TEMPLATE' : 'yamlpage.html',
'YAMLPAGE_AUTO_ROUTING' : True,
'YAMLPAGE_MARKDOWN_FILTER' : True,
'YAMLPAGE_RENDER_FILTER' : True,

Release files for flask_yamlpage 0.0.6

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for flask_yamlpage 0.0.6
File Size Uploaded
flask_yamlpage-0.0.6.tar.gz 2.2 kB Details

Release files / flask_yamlpage-0.0.6.tar.gz

Download URL flask_yamlpage-0.0.6.tar.gz
Size 2.2 kB
Tags Source
SHA-256 checksum
How to use checksums
59d662cf9dc6b6201b83a7785b3cb2fde931224bfc4adf3c4bba4ebc15bce943
BLAKE2b-256 checksum
How to use checksums
c83bd0c7013aa51d4ce1362060055adf6ae39331ebe7716740f00918581cc2cf
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No

Release history Release notifications | RSS feed

This release

0.0.6 This release

1 release file

0.0.5

0.0.4

1 release file

0.0.3

1 release file

0.0.2

1 release file

0.0.1

1 release file

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page