*.html.erb or *.erb.html?


#1

Railsters:

The wave of the future, for view file names, is *.html.erb , with the
target type on the left and the templating system on the right.

Right?

Or is *.erb.html also optional?

We are looking at a template system that seems to register both
extensions. Should it do that? Is that optional?

One of them doesn’t seem to work!


Phlip
http://www.oreilly.com/catalog/9780596510657/
^ assert_xpath
http://tinyurl.com/yrc77g <-- assert_latest Model


#2

On 8/1/07, Phlip removed_email_address@domain.invalid wrote:

We are looking at a template system that seems to register both
extensions. Should it do that? Is that optional?

One of them doesn’t seem to work!


Phlip

The general form of this should be

name.format.template_engine

format is the .html, xml, js, rss etc
template_engine is erb, haml, builder etc

HTH
Daniel