Lines Matching refs:template
10 from mako.template import Template
87 template = """
95 node = Lexer(template).parse()
119 template = """
125 Lexer(template).parse()
134 template = """
143 assert_raises(exceptions.SyntaxException, Lexer(template).parse)
146 template = """
149 assert_raises(exceptions.CompileException, Lexer(template).parse)
153 template = '<%def name="foo()"> this is a def. </%' + " " * 10000
154 assert_raises(exceptions.SyntaxException, Lexer(template).parse)
158 template = "<%0" + '"' * 3000
159 assert_raises(exceptions.SyntaxException, Lexer(template).parse)
162 template = """
172 assert_raises(exceptions.SyntaxException, Lexer(template).parse)
175 template = """
178 assert_raises(exceptions.CompileException, Lexer(template).parse)
181 template = """
186 assert_raises(exceptions.CompileException, Lexer(template).parse)
189 template = """
197 node = Lexer(template).parse()
214 template = """#*"""
215 node = Lexer(template).parse()
219 template = """
240 node = Lexer(template).parse()
284 template = """
289 assert_raises(exceptions.CompileException, Lexer(template).parse)
292 template = """
297 assert_raises(exceptions.CompileException, Lexer(template).parse)
300 template = """
305 node = Lexer(template).parse()
329 template = """
333 nodes = Lexer(template).parse()
357 template = """
360 nodes = Lexer(template).parse()
376 template = """
382 nodes = Lexer(template).parse()
418 template = """
422 nodes = Lexer(template).parse()
455 template = f"""
460 nodes = Lexer(template).parse()
482 template = """
491 nodes = Lexer(template).parse()
538 template = """text
549 nodes = Lexer(template).parse()
570 template = """
589 nodes = Lexer(template).parse()
643 template = """
650 nodes = Lexer(template).parse()
683 template = """
687 nodes = Lexer(template).parse()
700 template = r"""
705 nodes = Lexer(template).parse()
727 template = """<% print('hi %>') %>"""
728 nodes = Lexer(template).parse()
734 template = """<%
738 nodes = Lexer(template).parse()
758 template = """<%
768 nodes = Lexer(template).parse()
795 template = """<% foo = "\\"\\\\" %>"""
796 nodes = Lexer(template).parse()
803 template = """before ${ {'key': 'value'} } after"""
804 nodes = Lexer(template).parse()
818 template = """before ${ (0x5302 | 0x0400) } after"""
819 nodes = Lexer(template).parse()
833 template = """
846 nodes = Lexer(template).parse()
868 template = """% for file in requestattr['toc'].filenames:
872 nodes = Lexer(template).parse()
891 template = """
897 nodes = Lexer(template).parse()
919 template = """
928 Lexer(template).parse,
932 template = """
942 Lexer(template).parse,
946 template = """
956 Lexer(template).parse,
960 template = """
971 nodes = Lexer(template).parse()
992 template = """<%namespace name="foo" file="somefile.html"/>
1013 nodes = Lexer(template).parse()
1058 template = """
1065 nodes = Lexer(template).parse()
1082 template = util.read_file(self._file_path("crlf.html"))
1083 nodes = Lexer(template).parse()
1120 flatten_result(Template(template).render())
1125 template = """
1144 nodes = Lexer(template).parse()
1172 template = """
1182 nodes = Lexer(template).parse()
1216 template = """
1221 nodes = Lexer(template, preprocessor=preproc).parse()