Account Options

  1. Sign in
The old Google Groups will be going away soon, but your browser is incompatible with the new version.
Google Groups Home
« Groups Home
Default renderer
There are currently too many topics in this group that display first. To make this topic appear first, remove this option from another topic.
There was an error processing your request. Please try again.
flag
  3 messages - Collapse all  -  Translate all to Translated (View all originals)
The group you are posting to is a Usenet group. Messages posted to this group will make your email address visible to anyone on the Internet.
Your reply message has not been sent.
Your post was successful
 
From:
To:
Cc:
Followup To:
Add Cc | Add Followup-to | Edit Subject
Subject:
Validation:
For verification purposes please type the characters you see in the picture below or the numbers you hear by clicking the accessibility icon. Listen and type the numbers you hear
 
León Domingo  
View profile  
 More options May 6 2012, 9:11 am
From: León Domingo <leon.domi...@ender.es>
Date: Sun, 6 May 2012 06:11:16 -0700 (PDT)
Local: Sun, May 6 2012 9:11 am
Subject: Default renderer

Hi guys,

Is there a way to define a "default renderer" so every template will be
rendered using that particular language? I work with Jinja (the problem
would be the same with another language) and the thing is that I use it to
render to HTML (most of the time) but to JS too and even to XML sometimes.
I don't want to have files whose extension is .jinja2 Which one is HTML and
which one is JS?

Thanks in advance


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Eric Lemoine  
View profile  
 More options May 6 2012, 10:57 am
From: Eric Lemoine <eric.lemo...@camptocamp.com>
Date: Sun, 6 May 2012 16:57:42 +0200
Local: Sun, May 6 2012 10:57 am
Subject: Re: Default renderer

On Sunday, May 6, 2012, León Domingo wrote:
> Hi guys,

> Is there a way to define a "default renderer" so every template will be
> rendered using that particular language? I work with Jinja (the problem
> would be the same with another language) and the thing is that I use it to
> render to HTML (most of the time) but to JS too and even to XML sometimes.
> I don't want to have files whose extension is .jinja2 Which one is HTML and
> which one is JS?

Won't

config.add_renderer('.hml', ...)
config.add_renderer('.js', ...)
config.add_renderer('.xml', ...)

work for you?


--
Eric Lemoine

Camptocamp France SAS
Savoie Technolac, BP 352
73377 Le Bourget du Lac, Cedex

Tel : 00 33 4 79 44 44 96
Mail : eric.lemo...@camptocamp.com
http://www.camptocamp.com


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
León Domingo  
View profile  
 More options May 6 2012, 11:21 am
From: León Domingo <leon.domi...@ender.es>
Date: Sun, 6 May 2012 17:21:22 +0200
Local: Sun, May 6 2012 11:21 am
Subject: Re: Default renderer

Of course ;-)

Thanks, Eric

León Domingo
El 06/05/2012 16:57, "Eric Lemoine" <eric.lemo...@camptocamp.com> escribió:


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
End of messages
« Back to Discussions « Newer topic     Older topic »