所以我有以下文件webscript:露天webscript:模型腳本不使用
- xyz.post.desc.xml
- xyz.post.json.ftl
- xyz.post。 json.js
的遞減是這樣的:
<webscript>
<shortname>xxx</shortname>
<description>xxx</description>
<url>/my/url/xyz?uri={id}</url>
<format default="json">argument</format>
<lifecycle>draft_public_api</lifecycle>
<authentication>user</authentication>
<transaction>none</transaction>
<family>my/family</family>
</webscript>
在我的js
我這樣做:
model.foo = "bar"
然後在我的FTL
${foo}
我有一個FTL例外它說foo是不確定的,現在我敢肯定,我不執行JS文件本身。
什麼原因可以解釋webscript在評估模板之前沒有運行模型?
注:從URL /戶外/服務/ webscript名單,如果我在xyz.post的信息,請到我可以看到相關的.js內容
,你應該在共享的所有回購webscript看看框架,有xyz.post.json.js和工作正常。我還有其他webscript遵循相同的模式。 –
從你的問題是不清楚,你正在使用共享webscripts :) –
他們是存儲庫的webscripts,用於向共享web應用程序公開Alfresco repo數據,它不是一個共享webscript準確。對於我以前答覆的混淆感到抱歉。 –