Skip to content

Commit

Permalink
Docs: added sub-section on 'Format-specific tags' (for Disqus comment…
Browse files Browse the repository at this point in the history
… by Olivier R)
  • Loading branch information
Peter Hilton committed Jan 29, 2011
1 parent fa6fab6 commit a8b6195
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions documentation/manual/templates.textile
Original file line number Diff line number Diff line change
Expand Up @@ -225,6 +225,12 @@ bc. #{hello}
Bob
#{/hello}

h3. Format-specific tags

You can have different versions of a tag for different "content types":routes#content-types and Play will select the appropriate tag. For example, Play will use the **app/views/tags/hello.html** tag when **request.format** is **html**, and **app/views/tags/hello.xml** when the format is **xml**.

Whatever the content type, Play will fall back to the **.tag** extension if a format-specific tag is not available, e.g. **app/views/tags/hello.tag**.


h2. <a name="fasttags">Custom Java tags</a>

Expand Down

0 comments on commit a8b6195

Please sign in to comment.