简单Java文本模板 Hapax

码农软件 · 软件分类 · 模板引擎 · 2019-08-25 15:41:26

软件介绍

Hapax 是一个Java的简单文本模板,特别适合用来在 Java 程序中生成文本信息。语法和 Google 的 ctemplate 类似。Hapax 不依赖现有的 web 框架,使用在 servlet 或者服务端应用程序中使用。

使用示例:

package com.xfltr.hapax.examples;
import com.xfltr.hapax.Template;
import com.xfltr.hapax.TemplateDictionary;
import com.xfltr.hapax.TemplateException;
class HelloWorldExample {
public static void main(String[] args) throws TemplateException {
Template tmpl = Template.parse("Hello, {{WORLD:h}}");
TemplateDictionary dict = TemplateDictionary.create();
dict.put("WORLD", "Iapetus");
System.out.println(tmpl.renderToString(dict));
}
}

本文地址:https://codercto.com/soft/d/13147.html

Rework

Rework

Jason Fried、David Heinemeier Hansson / Crown Business / 2010-3-9 / USD 22.00

"Jason Fried and David Hansson follow their own advice in REWORK, laying bare the surprising philosophies at the core of 37signals' success and inspiring us to put them into practice. There's no jarg......一起来看看 《Rework》 这本书的介绍吧!

HTML 压缩/解压工具
HTML 压缩/解压工具

在线压缩/解压 HTML 代码

CSS 压缩/解压工具
CSS 压缩/解压工具

在线压缩/解压 CSS 代码

RGB CMYK 转换工具
RGB CMYK 转换工具

RGB CMYK 互转工具