我正在使用速度。
page.html
...
#set($localDecimal='#,##0.00')
#set($localInteger='#,##0')
#set($localNumber='#,##0')
#set($localCurrency=${currentCurrency}+'#,##0.00')
...
#parse('welcome.html')
...
welcome.html
$localNumber
我期待 #,##0
而不是 $localNumber
,看来 welcome.html
页面没有选择任何变量从 page.html
[parent template]
我做错了什么?
最佳答案
您可能正在使用 #include
而不是 #parse
。
include 什么都不做,只是插入内容。使用 Parse,它应该可以工作。
关于java - 未从父文件设置/定义速度变量,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/16316900/