docs/.templates/macros/html @ d93fe1c921f9

- Add |anyapplied, |anyunapplied, |anycount, and |nondefault filters.
- |anyapplied, |anyunapplied, |anycount, are filters to patch and when applied will make
 change the behavior so that if no patches are present then nothing will be printed
- |nondefault is a filter for branch that will stop anything being printed if the branch
 is the default one.  So only non-default branches are printed.
author Jason Harris <jasonh@wolfram.com>
date Fri, 27 Nov 2009 13:24:49 +0100
parents 2a8eea4463c3
children (none)
{% macro cssimport(css_href, document_root="", media="screen, projection") -%}
    <link rel="stylesheet" type="text/css" href="{{ document_root }}{{ css_href }}" {% if media %}media="{{ media }}" {% endif %}/>
{%- endmacro %}

{% macro css() -%}
    <style type="text/css">
        {{ caller() }}
    </style>
{%- endmacro %}

{% macro jsimport(js_href, document_root="") -%}
    <script type="application/javascript" src="{{ document_root }}{{ js_href }}"></script>
{%- endmacro %}

{% macro js() -%}
    <script type="text/javascript">
        {{ caller() }}
    </script>
{%- endmacro %}