Forum: Ruby on Rails *.html.erb or *.erb.html ?

Aafa8848c4b764f080b1b31a51eab73d?d=identicon&s=25 Phlip (Guest)
on 2007-07-31 16:40
(Received via mailing list)
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
9d1f5d2d9de70bd9a934f557dc95a406?d=identicon&s=25 Daniel ----- (liquid)
on 2007-07-31 16:48
(Received via mailing list)
On 8/1/07, Phlip <phlip2005@gmail.com> 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
Please log in before posting. Registration is free and takes only a minute.
Existing account

NEW: Do you have a Google/GoogleMail, Yahoo or Facebook account? No registration required!
Log in with Google account | Log in with Yahoo account | Log in with Facebook account
No account? Register here.