Default doctype in Chameleon

58 views
Skip to first unread message

Theron Luhn

unread,
Apr 30, 2012, 5:44:27 PM4/30/12
to pylons-...@googlegroups.com
I want to specify a default doctype in Chameleon. Google told me this is how to do it:

In Chameleon you can provide a ``doctype`` keyword argument to the
template constructor which will act as a default doctype.

How do I do that in Pyramid?

Chris McDonough

unread,
Apr 30, 2012, 5:51:31 PM4/30/12
to pylons-...@googlegroups.com
Afraid the Pyramid renderer associated with chameleon templates doesn't
provide a way to set this value. At the moment, you'd have to create
your own renderer as per
<http://docs.pylonsproject.org/projects/pyramid/en/1.3-branch/narr/renderers.html#adding-and-changing-renderers>

- C

Malthe Borch

unread,
May 1, 2012, 2:17:47 AM5/1/12
to pylons-...@googlegroups.com
On 30 April 2012 23:44, Theron Luhn <the...@luhn.com> wrote:
> I want to specify a default doctype in Chameleon.
>
> How do I do that in Pyramid?

You can use a "master" template and put the doctype in there, as XML.

\malthe
Reply all
Reply to author
Forward
0 new messages