velocity 教程

1,<title>

$!{product.name} - $!{title}

$!{about.title} - $!{title}

$!{news.title} - $!{title}

新闻中心 - $!{title}

$!{title}

2,内容管理系统

<div id="middle_banner"><img src="http://images.cnblogs.com/ibannerp.jpg" /></div>
<div id="middle">
<div id="middlei">
<div id="left_bar">
<div id="cate_name">
<h2>创新</h2>
</div>
<ul id="left_nav">
#foreach($info in $aboutlist)
<li><a href="$!{info.href}" #if($velocityCount eq 1)class="current" #end>$!{info.title}</a></li>
#end
</ul>
</div>
<div id="right_content">
<div id="path">首页 > 创新</div>
<div id="content">
$!{about.content}
</div>
</div>
</div>
</div>

3,文档发布管理系统

list:

<ul id="left_nav">
#foreach($info in $typelist)
<li><a href="$!{info.href}" #if($velocityCount eq 1)class="current" #end>$!{info.name}</a></li>
#end
</ul>
</div>
<div id="right_content">
<div id="path">首页 > 新闻动态</div>
<div id="content">
<div class="all_content">
<ul id="news_list1">
#foreach($info in $newslist)
<li><span class="date">$!{info.time}</span><span class="title"><a href="$!{info.href}">$!{info.title}</a></span></li>
#end
</ul>
<div id="page_list"> $!{pageBar} </div>
</div>
</div>
</div>

info:

<ul id="left_nav">
#foreach($info in $typelist)
<li><a href="$!{info.href}" #if($velocityCount eq 1)class="current" #end>$!{info.name}</a></li>
#end
</ul>
</div>
<div id="right_content">
<div id="path">首页 > 新闻动态</div>
<div id="content">
<div class="all_content">
<h1 id="news_title">$!{news.title}</h1>
<p id="news_date">$!{news.time}</p>
<div id="news_content"> $!{news.content} </div>
</div>
</div>
</div>

上一篇:设计模式之Application Programs and Toolkits


下一篇:codeforces 1140E Palindrome-less Arrays