PageRenderTime 12ms CodeModel.GetById 10ms app.highlight 1ms RepoModel.GetById 1ms app.codeStats 0ms

/scalate-page/src/test/resources/blog/index.page

http://github.com/scalate/scalate
Visualforce Page | 26 lines | 22 code | 4 blank | 0 comment | 0 complexity | 7c0ac7cc387c64731014105e40943fce MD5 | raw file
 1---
 2title: Scalate Blog
 3in_menu: false
 4sort_info: 7
 5--- name:head pipeline:ssp
 6<link rel="alternate" title="Foo RSS" href="index.rss" type="application/rss+xml">
 7
 8--- name:overview
 9<h1>
10Foo Blog <a href="index.rss"><img src="images/rss.gif"/></a>
11</h1>
12The latest greatest news from the Scalate team
13
14--- name:blog pipeline:ssp
15
16<% import org.fusesource.scalate.page.BlogHelper._ %>
17#for(page <- helper.blogPosts)
18  	  <div class="post">
19  	    <h2><a href="">${page.title}</a></h2>
20        <div class="details">Posted by ${page.author} on ${page.createdAt}</div>
21    	  <p>
22          ${page.render()}
23        </p>
24  	  </div>
25#end
26