📄 contentblockextractingrule.java
字号:
package com.opensymphony.module.sitemesh.html.rules;import com.opensymphony.module.sitemesh.html.BlockExtractingRule;import com.opensymphony.module.sitemesh.html.Tag;public class ContentBlockExtractingRule extends BlockExtractingRule { private final PageBuilder page; private String contentBlockId; public ContentBlockExtractingRule(PageBuilder page) { super(false, "content"); this.page = page; } protected void start(Tag tag) { contentBlockId = tag.getAttributeValue("tag", false); } protected void end(Tag tag) { page.addProperty("page." + contentBlockId, currentBuffer().toString()); }}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -