Brillian, thanks Tres.
On Thursday, April 3, 2014 11:27:26 AM UTC-7, Tres Seaver wrote:
>
> -----BEGIN PGP SIGNED MESSAGE-----
> Hash: SHA1
>
> On 04/03/2014 01:28 PM, Seth wrote:
>
>
>
> List all configured renderers::
>
> from pyramid.interfaces import IRendererFactory
>
> def list_renderers(request):
> rf = request.registry.getUtilitiesFor(IRendererFactory)
> return {'renderers': dict(rf)}
>
> In the template associated with the renderer, you can get to the
> following:
>
> - 'render_name' will be the name of the template.
>
> - 'renderer_info' will be an instance of
> pyramid.renderers.RendererHelper;
> its 'type' attribute will be the key under which the factory was
> registered (e.g., '.pt', '.mako').
>
>
> Tres.
> - --
> ===================================================================
> Tres Seaver +1 540-429-0999
> [email protected]<javascript:>
> Palladion Software "Excellence by Design" http://palladion.com
> -----BEGIN PGP SIGNATURE-----
> Version: GnuPG v1.4.11 (GNU/Linux)
> Comment: Using GnuPG with Thunderbird - http://www.enigmail.net/
>
> iEYEARECAAYFAlM9qA4ACgkQ+gerLs4ltQ6eDACgtS8qow1Rzc3nbTLOxUol3NY0
> mDAAoM7r0dyA1q6McPrxv0F5lHJOp9CP
> =uIyP
> -----END PGP SIGNATURE-----
>
>
--
You received this message because you are subscribed to the Google Groups
"pylons-discuss" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
To post to this group, send email to [email protected].
Visit this group at http://groups.google.com/group/pylons-discuss.
For more options, visit https://groups.google.com/d/optout.