handle wider variety of <script> templates
a few jinja2 specific template tags