# \*.html.erb or \*.erb.html?

**URL:** <https://www.ruby-forum.com/t/html-erb-or-erb-html/110861>\
**Category:** Rails\
**Created:** [July 31, 2007, 4:40pm UTC](https://www.ruby-forum.com/t/html-erb-or-erb-html/110861 "2007-07-31T16:40:54Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![Phlip](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/p/ed8c4c/32.png) [@Phlip](https://www.ruby-forum.com/u/Phlip)\
**Post date:** [July 31, 2007, 4:40pm UTC](https://www.ruby-forum.com/t/html-erb-or-erb-html/110861/1 "2007-07-31T16:40:54Z")

</div>

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/](http://www.oreilly.com/catalog/9780596510657/)  
^ assert\_xpath  
[O'Reilly Media - Technology and Business Training](http://tinyurl.com/yrc77g) ← assert\_latest Model

---

<div class="post-metadata">

**Author:** ![Phlip](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/p/ed8c4c/32.png) [@Phlip](https://www.ruby-forum.com/u/Phlip)\
**Post date:** [July 31, 2007, 4:48pm UTC](https://www.ruby-forum.com/t/html-erb-or-erb-html/110861/2 "2007-07-31T16:48:56Z")

</div>

On 8/1/07, Phlip [removed\_email\_address@domain.invalid](mailto: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
