Did I find the right examples for you? yes no

All Samples(3905)  |  Call(3905)  |  Derive(0)  |  Import(0)

src/d/j/django-geoportail-0.4.6/examples/geoportal/tests.py   django-geoportail(Download)
 
        tmpl = Template(KML_TEMPLATE % '/kml_url.kml width=5')
        rendered = tmpl.render(context)
        self.assertTrue('kml.extract = false;' in rendered)
 
        tmpl = Template(KML_TEMPLATE % '/kml_url.kml focus=0')
        rendered = tmpl.render(context)
 
        tmpl = Template(KML_TEMPLATE % '/kml_url.kml popup=0')
        rendered = tmpl.render(context)
        self.assertFalse("new OpenLayers.Popup.FramedCloud" in rendered)
 
 
        tmpl = Template(GPX_TEMPLATE % '/gpx_url.gpx opacity=0.7')
        rendered = tmpl.render(context)
        self.assertTrue('gpx.extract = true;' in rendered)
 
        tmpl = Template(GPX_TEMPLATE % '/gpx_url.gpx focus=0')
        rendered = tmpl.render(context)

src/a/p/appscale-HEAD/AppServer/lib/jinja2-2.6/examples/bench.py   appscale(Download)
    def test_django():
        c = DjangoContext(context)
        c['navigation'] = [('index.html', 'Index'), ('downloads.html', 'Downloads'),
                           ('products.html', 'Products')]
        django_template.render(c)

src/g/o/google-app-engine-HEAD/lib/jinja2-2.6/examples/bench.py   google-app-engine(Download)
    def test_django():
        c = DjangoContext(context)
        c['navigation'] = [('index.html', 'Index'), ('downloads.html', 'Downloads'),
                           ('products.html', 'Products')]
        django_template.render(c)

src/g/o/googleappengine-python-HEAD/lib/jinja2-2.6/examples/bench.py   googleappengine-python(Download)
    def test_django():
        c = DjangoContext(context)
        c['navigation'] = [('index.html', 'Index'), ('downloads.html', 'Downloads'),
                           ('products.html', 'Products')]
        django_template.render(c)

src/h/u/hunch-sample-app-HEAD/django/views/debug.py   hunch-sample-app(Download)
            'loader_debug_info': self.loader_debug_info,
        })
        return t.render(c)
 
    def get_template_exception_info(self):
        'settings': get_safe_settings(),
    })
    return HttpResponseNotFound(t.render(c), mimetype='text/html')
 
def empty_urlconf(request):
        'project_name': settings.SETTINGS_MODULE.split('.')[0]
    })
    return HttpResponse(t.render(c), mimetype='text/html')
 
#

src/n/e/neutron-drive-HEAD/google_appengine/lib/jinja2/examples/bench.py   neutron-drive(Download)
    def test_django():
        c = DjangoContext(context)
        c['navigation'] = [('index.html', 'Index'), ('downloads.html', 'Downloads'),
                           ('products.html', 'Products')]
        django_template.render(c)

src/o/h/oh-mainline-HEAD/vendor/packages/Jinja2/examples/bench.py   oh-mainline(Download)
    def test_django():
        c = DjangoContext(context)
        c['navigation'] = [('index.html', 'Index'), ('downloads.html', 'Downloads'),
                           ('products.html', 'Products')]
        django_template.render(c)

src/d/j/django-googlecharts-HEAD/docs/render-examples.py   django-googlecharts(Download)
        chart = section.find("literal_block").text
        t = template.Template("{% load charts %}" + chart)
        rendered = t.render(template.Context(data))
        examples.append({
            "title" : title,
            "template": chart,
            "image": rendered,
        })
    t = template.Template(EXAMPLE_TEMPLATE)
    return t.render(template.Context({"examples": examples, "data": data}))

src/h/u/hunch-sample-app-HEAD/django/contrib/messages/tests/urls.py   hunch-sample-app(Download)
</ul>
{% endif %}""")
    return HttpResponse(t.render(RequestContext(request)))
 
 

src/h/u/hunch-sample-app-HEAD/django/contrib/auth/tests/urls.py   hunch-sample-app(Download)
def remote_user_auth_view(request):
    "Dummy view for remote user tests"
    t = Template("Username is {{ user }}.")
    c = RequestContext(request, {})
    return HttpResponse(t.render(c))

  1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9  Next