Did I find the right examples for you? yes no      Crawl my project      Python Jobs

All Samples(8)  |  Call(4)  |  Derive(0)  |  Import(4)

src/s/t/StrangeCase-4.6.5/strange_case/nodes/jinja.py   StrangeCase(Download)
from strange_case.nodes import PageNode
from strange_case.registry import Registry
from strange_case.support.jinja import fix_path
 
 
    def render(self, site=None):
        try:
            template = Registry.get('jinja_environment').get_template(fix_path(self.source_path))
        except UnicodeDecodeError as e:
            e.args += "Could not process '%s' because of unicode error." % self.source_path

src/s/t/StrangeCase-HEAD/strange_case/nodes/jinja.py   StrangeCase(Download)
from strange_case.nodes import PageNode
from strange_case.registry import Registry
from strange_case.support.jinja import fix_path
 
 
    def render(self, site=None):
        try:
            template = Registry.get('jinja_environment').get_template(fix_path(self.source_path))
        except UnicodeDecodeError as e:
            e.args += "Could not process '%s' because of unicode error." % self.source_path

src/s/t/StrangeCase-4.6.5/strange_case/nodes/plywood.py   StrangeCase(Download)
from __future__ import absolute_import
import re
from strange_case.nodes import PageNode
from strange_case.registry import Registry
from strange_case.support.jinja import fix_path
    def render(self, site=None):
        try:
            env = Registry.get('plywood_environment')
            template_path = fix_path(self.source_path)
            with open(template_path) as f:

src/s/t/StrangeCase-HEAD/strange_case/nodes/plywood.py   StrangeCase(Download)
from __future__ import absolute_import
import re
from strange_case.nodes import PageNode
from strange_case.registry import Registry
from strange_case.support.jinja import fix_path
    def render(self, site=None):
        try:
            env = Registry.get('plywood_environment')
            template_path = fix_path(self.source_path)
            with open(template_path) as f: