test-import.txt

来自「freemaker安装软件」· 文本 代码 · 共 27 行

TXT
27
字号
--
<#-- import "/test-import_lib.txt" as my -->
--

<#if mail?exists || test?exists>
  <#stop "mail or test should not exist">
</#if>

${my.mail}
<@my.test foo="bar"/>

<#assign mail="jsmith@other1.com">
${my.mail}
<@my.test foo="bar"/>

<#assign mail in my>
  jsmith@other2.com<#t>
</#assign>
${my.mail}
<@my.test foo="bar"/>

<#import "/test-import_lib.txt" as my2>
${my2.mail}
<#assign mail="jsmith@other3.com" in my2>
${my.mail}

${my2.doubleUp("foobar")}

⌨️ 快捷键说明

复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?