Skip to content

Update syntax.html #3

New issue

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

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
17 changes: 16 additions & 1 deletion zh/syntax.html
Original file line number Diff line number Diff line change
Expand Up @@ -209,6 +209,21 @@ <h3>$!{}不过滤输出</h3>
</pre>

<p>注意:使用不过滤输出,请确保内容是开发者确定的安全内容,而不是由用户提交的内容,以防止HTML注入攻击,参见:<a href="example.html#安全示例">安全示例</a>。</p>
<h2>导入包/类指令</h2>
<h3>#import</h3>

<p>导入包或者类,类名和包名必须复合Java规范,包名必须全小写,类名必须开头字母大写。</p>
<pre class="brush: xml;">格式:
#import(packages)
#import(package1,package2,package3)
#import(package1;package2;package3)
#import(classFullName;package.ClassName;package3)

示例:
#import(com.github.httl)
#import(com.github.httl.Template)
#import(com.github.httl.util,com.github.httl.Template)
</pre>

<h2>变量指令</h2>

Expand Down Expand Up @@ -1122,4 +1137,4 @@ <h2>指令对比</h2>
</footer>
</div>
</body>
</html>
</html>