Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

如果在jsp中是用的话,${} 会被当做el表达式优先编译 #121

Open
yunxiaoit00 opened this issue Jan 22, 2017 · 1 comment
Open

Comments

@yunxiaoit00
Copy link

请问现在有什么办法处理吗

@mycoin
Copy link

mycoin commented Feb 8, 2017

juicer.set({
    'tag::operationOpen': '{%',
    'tag::operationClose': '%}',
    'tag::interpolateOpen': '{{',
    'tag::interpolateClose': '}}',
    'tag::noneencodeOpen': '{{=',
    'tag::noneencodeClose': '}}',
    'tag::commentOpen': '{#',
    'tag::commentClose': '}',

    'errorhandling': false,
    'strip': false
});

表达式
{{item.userName}} 或者 {{=item.userName}}

操作符
{%if (item.isActive === "true")%} xxx {{%/if%}}

# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants