We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
用法:
先用 Java 定义一个 Tag:比如 cache
public static void cache(JetTagContext ctx, String name) { String value = CacheManager.get(name); if (value == null) { value = ctx.getBodyContent(); CacheManager.set(name, value); } ctx.getWriter().write(value); }
然后在模板中使用:
#tag cache("1-1-1") ...... ${header()} ${header()} ${header()} ... 其他内容... #end
The text was updated successfully, but these errors were encountered:
ec77eb6
subchen
No branches or pull requests
用法:
先用 Java 定义一个 Tag:比如 cache
然后在模板中使用:
The text was updated successfully, but these errors were encountered: