freemarker自己定义标签(一)
2024-08-31 16:08:30
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>
最新文章
- 做一个 App 前需要考虑的几件事
- ASP.NET MVC post请求接收参数的三种方式
- jquery简单开始
- iOS开发:(线程篇-上)线程和进程
- 20161013001 DataGridView 数据转 DataTable
- Mybatis Generator生成工具配置文件详解
- Python之路【第七篇续】:进程、线程、协程
- KVC与KVO
- ssh 互通脚本
- SqlSever基础 select cast 将一个int类型数据转换为char
- 请输入正确的RSA公钥
- ATSHA204加密认证IC
- html 中 #include file 的用法
- (大数据工程师学习路径)第四步 SQL基础课程----SQL介绍及mysql的安装
- Python操作HBase之happybase
- 第5章 Linux上管理文件系统
- 【libreOJ模板】并查集(输入挂,取模与find优化)
- bubbo调用Failed to invoke remote method异常解决
- Python-Flask实现基金自选网站
- 企业";信息化建设";价值
热门文章
- 【Codeforces Round #450 (Div. 2) B】Position in Fraction
- 以流的形式接收Http请求
- Android 快速下载 Android framework 源码
- Altium Designer中原理图和pcb交叉查找
- Loadrunner--web_find和web_reg_find的用法和区别
- SpringMVC 学习笔记(十) 异常处理HandlerExceptionResolver
- ElasticSearch 2.4
- lua不同模块调用
- Java学习很好的笔记
- [TypeScript] Using Interfaces to Describe Types in TypeScript