freemarker自己定义标签

1、自己定义标签说明

宏变量存储模板片段能够被用作自己定义指令macro

2、演示样例说明

<html>
<head>
<meta http-equiv="content-type" content="text/html; charset=UTF-8">
<title>freemarker自己定义标签</title> </head> <body>
<#--freemarker自己定义标签-->
<#macro write>
repeat("张三丰",3)
</#macro> <@write/>
</body>
</html>

3、演示样例结果

<html>
<head>
<meta http-equiv="content-type" content="text/html; charset=UTF-8">
<title>freemarker自己定义标签</title> </head> <body> repeat("张三丰",3)
</body>
</html>

最新文章

  1. 做一个 App 前需要考虑的几件事
  2. ASP.NET MVC post请求接收参数的三种方式
  3. jquery简单开始
  4. iOS开发:(线程篇-上)线程和进程
  5. 20161013001 DataGridView 数据转 DataTable
  6. Mybatis Generator生成工具配置文件详解
  7. Python之路【第七篇续】:进程、线程、协程
  8. KVC与KVO
  9. ssh 互通脚本
  10. SqlSever基础 select cast 将一个int类型数据转换为char
  11. 请输入正确的RSA公钥
  12. ATSHA204加密认证IC
  13. html 中 #include file 的用法
  14. (大数据工程师学习路径)第四步 SQL基础课程----SQL介绍及mysql的安装
  15. Python操作HBase之happybase
  16. 第5章 Linux上管理文件系统
  17. 【libreOJ模板】并查集(输入挂,取模与find优化)
  18. bubbo调用Failed to invoke remote method异常解决
  19. Python-Flask实现基金自选网站
  20. 企业&quot;信息化建设&quot;价值

热门文章

  1. 【Codeforces Round #450 (Div. 2) B】Position in Fraction
  2. 以流的形式接收Http请求
  3. Android 快速下载 Android framework 源码
  4. Altium Designer中原理图和pcb交叉查找
  5. Loadrunner--web_find和web_reg_find的用法和区别
  6. SpringMVC 学习笔记(十) 异常处理HandlerExceptionResolver
  7. ElasticSearch 2.4
  8. lua不同模块调用
  9. Java学习很好的笔记
  10. [TypeScript] Using Interfaces to Describe Types in TypeScript