diff --git a/redstring/templates/base.jinja b/redstring/templates/base.jinja new file mode 100644 index 0000000..d34ef50 --- /dev/null +++ b/redstring/templates/base.jinja @@ -0,0 +1,104 @@ + + + +{{ page_title }} + + +{% if page_summary -%} + +{% endif -%} + + +{% block page_scripts %}{% endblock %} + + +
+{% block page_content %}{% endblock %} +
+ + \ No newline at end of file diff --git a/redstring/templates/doc.jinja b/redstring/templates/doc.jinja new file mode 100644 index 0000000..c73cdf0 --- /dev/null +++ b/redstring/templates/doc.jinja @@ -0,0 +1,53 @@ +{% extends 'base.jinja' %} + +{% set page_title = 'tmp' -%} +{% set page_summary = 'tmpp' %} + +{% block page_scripts %} + +{% endblock page_scripts %} + +{% macro make_tab(tab, selected) -%} +
{{ tab.name }}
+{%- endmacro %} + +{% macro make_tab_content(tab, selected) %} +
+ +{% for tag in tab %} + + + + +{% endfor %} +
{{ tag.name }}{{ tag.value }}
+
+{% endmacro %} + +{% block page_content %} +{% for tab in document %}{{ make_tab(tab, loop.first) }}{% endfor %}
index
+{% for tab in document %}{{ make_tab_content(tab, loop.first) }}{% endfor %} +{% endblock page_content %} \ No newline at end of file