简单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://www.codercto.com/soft/d/13147.html

The Little Prover

The Little Prover

Daniel P. Friedman、Carl Eastlund / The MIT Press / 2015-7-10 / USD 38.00

[FROM www.amazon.com]: The Little Prover introduces inductive proofs as a way to determine facts about computer programs. It is written in an approachable, engaging style of question-and-answer, wi......一起来看看 《The Little Prover》 这本书的介绍吧!

在线进制转换器
在线进制转换器

各进制数互转换器

URL 编码/解码
URL 编码/解码

URL 编码/解码

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

RGB CMYK 互转工具