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>
velocity 教程的更多相关文章
- Velocity教程【转】
原文:http://blog.csdn.net/qq_25237663/article/details/52262532 Velocity是一个基于Java的模板引擎,通过特定的语法,Velocity ...
- Velocity教程 (zhuan)
http://blog.csdn.net/qq_25237663/article/details/52262532 ****************************************** ...
- Velocity教程-脚本语法详解(转)
Velocity是一个基于java的模板引擎(template engine).它允许任何人仅仅简单的使用模板语言(template language)来引用由java代码定义的对象. 当Veloci ...
- Velocity教程
Velocity 语法(转) 一.基本语法 1."#"用来标识Velocity的脚本语句,包括#set.#if .#else.#end.#foreach.#end.#iinclud ...
- 最小的 Velocity 教程
工作以后,我越来越能体会到80/20法则的强大. 这是一个不可否认的事实,常用 20% 的技术可以解决工作中 80% 的场景. 所以我希望能介绍给你 Velocity 技术 20%,帮助你胜任 80% ...
- velocity 知识点
velocity 教程: http://www.51gjie.com/javaweb/126 velocity 语法 语法 说明 关键字以#开头 定义数组 ['aaa','bbb'] 变量以$开头 把 ...
- 1-3SpringBoot之Controller使用
Controller的使用 @Controller 处理http请求 @RestController Spring4之后新加的注解,原来返回json需要@ResponseBody配合@Controll ...
- velocity.js 中文文档 (教程)
velocity.js 是一个简单易用.高性能.功能丰富的轻量级JS动画库.它能和 jQuery 完美协作,并和$.animate()有相同的 API, 但它不依赖 jQuery,可单独使用. Vel ...
- Velocity快速入门教程-脚本语法详解(转)
1.变量 (1)变量的定义: #set($name = "hello") 说明:velocity中变量是弱类型的. 当使用#set 指令时,括在双引号中的字面字符串将解析 ...
随机推荐
- JqGrid相关操作
JqGrid相关操作 根据jqGrid的文档,要想生成一个jqGrid,最直接的方法就是:$("#grid_id").jqGrid(options);也就是通过选择符得到一个tab ...
- oracle索引
1,建立索引 create index goods_num on goods (num) tablespace data; 2,查看表上索引 select * from USER_INDEXES wh ...
- 查看源码利器之sublime text 3 配置 Ctags 插件
最近在看源码的时候发现sublime text 3是很给力的一款软件,小巧精致,这里着重讲解一下Ctags协助编译和跟踪函数 一.安装Package Control (如果Preferences &g ...
- URAL 1525 Path
#include<stdio.h> #include<string.h> #include<math.h> #include<algorithm> us ...
- js-学习方法之3
熟悉JavaScript每一个方法的作用 这一要求听起来似乎有点不太实际,我想这个要求对于像C#.JAVA这些大型语言来说确实是,因为这些语言类库实在太庞大了,相信没有人可以全面记住它,而且也是没有必 ...
- 关于ApkTool不同版本在重新打游戏包时候的区别
在工作中由于使用到将游戏CP提供的apk包重新反编译,然后二次签名出包,所以遇到了一个奇怪的bug. 下面是CP提供的apk包,将近358M 但是在重新编译之后,包变成了250M左右的apk包,虽然可 ...
- 8、Spring+Struts2+MyBaits(Spring注解+jdbc属性文件+log4j属性文件)
一.注解理论 使用注解来构造IoC容器 用注解来向Spring容器注册Bean.需要在applicationContext.xml中注册<context:component-scan base- ...
- openwrt杂记
/etc/config/wireless是在boot启动时生成的. 代码在/etc/init.d/boot中,如下: /sbin/wifi detect > /tmp/wireless.tmp ...
- Time complexity of ArrayList in Java
The size, isEmpty, get, set, iterator, and listIterator operations run in constant time. The add ope ...
- Pivot Index--Google
Return the pivot index of the given array of numbers. The pivot index is the index where the sum of ...