Skip to content
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

优化 smarty标签 路径 #2

Merged
merged 1 commit into from
Apr 3, 2015
Merged

优化 smarty标签 路径 #2

merged 1 commit into from
Apr 3, 2015

Conversation

2betop
Copy link
Contributor

@2betop 2betop commented Apr 3, 2015

{%widget name="./xxx.tpl" %}
{%html frameworkd="/static/js/mod.js"%}
{%extends file="./layout.tpl"%}
{%uri name="../static/js/mod.js"%}
{%require name="../static/js/mod.js"%}

转换后 (假设 ns 为 demo)

{%widget name="demo:widget/xxx/xxx.tpl" %}
{%html frameworkd="demo:static/js/mod.js"%}
{%extends file="demo/page/layout.tpl"%}
{%uri name="demo:static/js/mod.js"%}
{%require name="demo:static/js/mod.js"%}

oxUnd added a commit that referenced this pull request Apr 3, 2015
优化 smarty标签 路径 ;注,不识别 name,id 或者 file 会原封不动还原回去;
@oxUnd oxUnd merged commit 3c70f60 into oxUnd:master Apr 3, 2015
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants