Re: Doctests for custom template tags

2009-07-18 Thread A Khodyrev
r rendering" lexer = Lexer(template_string, origin) parser = Parser(lexer.tokenize()) for lib in libraries: parser.add_library(lib) return parser.parse() On Jul 17, 4:18 pm, A Khodyrev wrote: >   Hello > > I'm writing a library of helper classes/functions

Doctests for custom template tags

2009-07-17 Thread A Khodyrev
Hello I'm writing a library of helper classes/functions to ease creation of custom template tags. So a natural doctest (or an example in the documentation) goes like this: define a compiler function and Node class with my helpers, register them with a tag library, define a bunch of template str