【发布时间】:2013-08-28 15:43:12
【问题描述】:
我有一个静态主题,其中包含一些用于自定义 jquery 插件的 json 属性,例如
data-plugin-options='{"directionNav":false, "animation":"slide", "slideshow": false, "maxVisibleItems": 6}'
重氮编译器抱怨这样的事情
Invalid expression [0:0]
compilation error, element 'div' [400:0]
Attribute 'data-plugin-options': Failed to compile the expression ''directionNav':false, 'animation':'slide', 'slideshow': false, 'maxVisibleItems': 6' in the AVT. [0:0]
Invalid expression [0:0]
compilation error, element 'div' [445:0]
Attribute 'data-plugin-options': Failed to compile the expression ''directionNav':false, 'animation':'slide'' in the AVT. [0:0]
Invalid expression [0:0]
compilation error, element 'div' [512:0]
Attribute 'data-plugin-options': Failed to compile the expression ''controlNav':false, 'slideshow': false, 'animationLoop': true, 'animation':'slide'' in the AVT. [0:0]
并中断渲染。
有没有办法使这项工作(除了将 conf 移动到 js 之外)?
【问题讨论】:
-
我们能看到更大的静态主题sn-p吗?
标签: json attributes plone theming diazo