fex-team / jello

Front End Integrated Solution for J2EE Velocity.
206 stars 49 forks source link

#require指令如何解决静态资源绝对引用的问题? #67

Closed flyingzl closed 9 years ago

flyingzl commented 9 years ago

J2EE应用部署后,有一个context,一般我们可以通过$request.getContextPath来获取绝对路径,然后拼接上静态资源例如,例如 <script src="$request.contextPath/static/js/require.js"></script>

由于#requrie是根据map.json表来映射的,而且我也不可以在fis-conf.js中把url写死,有什么更好的解决方法?

2betop commented 9 years ago

转移到 https://github.com/fex-team/fis-velocity-tools/issues/11

这个就关了