Skip to content

Commit

Permalink
add date_fanciness checks to the example theme code
Browse files Browse the repository at this point in the history
  • Loading branch information
keturn committed Feb 19, 2019
1 parent aa4a841 commit d58934c
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions docs/manual.rst
Expand Up @@ -1632,6 +1632,7 @@ For Mako:

.. code:: html

% if date_fanciness != 0:
<!-- required scripts -- best handled with bundles -->
<script src="/assets/js/moment-with-locales.min.js"></script>
<script src="/assets/js/fancydates.js"></script>
Expand All @@ -1642,12 +1643,14 @@ For Mako:
fancydates(${date_fanciness}, ${js_date_format});
</script>
<!-- end fancy dates code -->
%endif


For Jinja2:

.. code:: html

{% if date_fanciness != 0 %}
<!-- required scripts -- best handled with bundles -->
<script src="/assets/js/moment-with-locales.min.js"></script>
<script src="/assets/js/fancydates.js"></script>
Expand All @@ -1658,6 +1661,7 @@ For Jinja2:
fancydates({{ date_fanciness }}, {{ js_date_format }});
</script>
<!-- end fancy dates code -->
{% endif %}


Adding Files
Expand Down

0 comments on commit d58934c

Please sign in to comment.