- jinja2 - Routes - markdown2 - 'https://files.pythonhosted.org/packages/a1/9e/8ddb04ef21ea3dfe3924b884dc11fa785df662af23e049ec2d62eaba707d/websocket_client-1.3.2-py3-none-any.whl' - '/static/peewee-3.14.10-py3-none-any.whl' - '/static/schmol-0.0.1-py3-none-any.whl' - paths: - /static/models.py - /static/components.py
{% for deck in this.decks %}
{{deck.title}}
{% endfor %}
{% for item in this.items %}
{% endfor %} {% if not this.is_live %} {% if not this.is_first %}
<
{% endif %} {% if not this.is_last %}
>
{% endif %} {% endif %}
{% for item in this.items %}
{% endfor %}
{% for item in this.next_items %}
{% endfor %}
Refresh
Prev
Next
{{ this.html|safe }}
{{ this.html|safe }}
Hello {{name}}
import js from schmol.components import Application from schmol.routing import Router from routes.route import Route from components import Decks, Slide, Present, Hello, Live from models import Deck, Slide as SlideModel, Item app = Application(Element('app'), 'main', router=Router({ Route('index', '/index.html', template='decks', component=Decks), Route('first_slide', '/{slug}/', template='slide', component=Slide, position='1'), Route('slide', '/{slug}/{position}', template='slide', component=Slide), Route('first_live', '/live/{slug}/', template='slide', component=Live, position='1'), Route('live', '/live/{slug}/{position}', template='slide', component=Live), Route('first_present', '/present/{slug}/', template='present', component=Present, position='1'), Route('present', '/present/{slug}/{position}', template='present', component=Present), }, '/index.html'), models=[Deck, SlideModel, Item]),