File: extensions.py

package info (click to toggle)
pyramid-jinja2 2.7%2Bdfsg-1
  • links: PTS, VCS
  • area: main
  • in suites: buster, stretch
  • size: 2,776 kB
  • ctags: 688
  • sloc: python: 1,657; makefile: 72; sh: 7
file content (6 lines) | stat: -rw-r--r-- 189 bytes parent folder | download | duplicates (3)
1
2
3
4
5
6
from jinja2 import nodes
from jinja2.ext import Extension

class TestExtension(Extension):
    tags = {'test_ext'}
    def parse(self, parser): return nodes.Const("This is test extension")