我可以在Spring 4 MVC项目中使用Stylus和/或Jade吗? [英] Can I use Stylus and/or Jade with Spring 4 MVC project?

查看:142
本文介绍了我可以在Spring 4 MVC项目中使用Stylus和/或Jade吗?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我已经习惯了Stylus来预处理css,而Jade简化了Node.JS世界中的HTML,我已经习惯了/爱上了Stylus.现在,我返回到Spring 4 MVC项目,并希望在此环境中使用这些技术.

I have gotten used to/fell in love with Stylus for preprocessing css and Jade for simplifying my HTML in the Node.JS world. Now I am back to working on a Spring 4 MVC project and would like to use those technologies in this environment.

是否可以集成它们(我正在使用Gradle)?谷歌对Stylus Java Gradle的快速搜索未返回有用的回答.

Is it possible to integrate them (I am using Gradle)? A quick google search for Stylus Java Gradle returned no helpful responses.

谢谢!

推荐答案

手写笔和Jade在JavaScript世界中似乎很流行,而在JVM世界中却没有那么多.

Stylus and Jade seem to be popular in the JavaScript world, not so much in the JVM world.

以下是我所知道的最接近的工具,并在JVM世界中提供了良好的支持:

Here are the closest tools I know about, with good support in the JVM world:

  • LESS, for a CSS preprocessor replacement
  • Groovy Templates are quite close to Jade
  • Spring Framework 4.1 will also include some improvements for handling static resources (see SPR-10933 and SPR-11800)

这篇关于我可以在Spring 4 MVC项目中使用Stylus和/或Jade吗?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
相关文章
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆