Skip to content
Myr

[svn] updated bakerplugin

Before adoption: this commit came in with the history the project adopted, so no landing records it.

--HG-- branch : trunk

authored by Armin Ronacher · committed by Armin Ronacher · parent 6c66888 · Browse files · 1 file+12 added−1 removed
This commit

State

Before adoption: this commit came in with the history the project adopted, so no landing records it.

Diff stats

1 file+12 added−1 removed

  • other:+12 added−1 removed

1 file+12 added−1 removed

modified:jinja/bakerplugin.py+12 added-1 removed
47 unmodified lines
48 for k, v in options.iteritems():49 if k.startswith('jinja.loader.'):50 loaderoptions[k[14:]] = v51 loader = loadercls(**loaderoptions)52 if 'jinja.environment.context_class' in options:53 context_class = options['jinja.environment.context_class']54 else:55 contextname = options.get('jinja.context_class') or \56 'jinja.datastructure.Context'57 if '.' in contextname:58 p = contextname.rsplit('.', 1)59 context_class = getattr(__import__(p[0], '', '', ['']), p[1])60 else:61 from jinja import Context as context_class62 self.environment = Environment(63 block_start_string=options.get('jinja.block_start_string', '{%'),64 block_end_string=options.get('jinja.block_end_string', '%}'),65 variable_start_string=options.get('jinja.variable_start_string', '{{'),
6 unmodified lines
72 charset=options.get('jinja.charset', 'utf-8'),73 namespace=options.get('jinja.namespace'),74 loader=loader,75 filters=options.get('jinja.filters'),66 tests=options.get('jinja.tests')76 tests=options.get('jinja.tests'),77 context_class=context_class78 )7980 def load_template(self, templatename, template_string=None):81 """
23 unmodified lines