Last year, I was assigned to build a web app using Struts. I wanted a Haml interpreter and found JHaml. The problem is it only converts Haml strings to HTML. I need something to convert .haml files to .html or .jsp files. Why should you use Haml? See here.
Due to this limitation, I created BatchJHaml. If you’re using BatchJHaml as a standalone app, it’s pretty straight forward. But what if you want to include BatchJHaml into your Ant build script? Here’s what you need to do.
git clone email@example.com:pugnusferreus/batchjhaml.git in your terminal
2.) cd to BatchJHaml
BatchJHaml.jar will appear in the
4.) Copy and paste
BatchJHaml.jar in your local lib directory.
5.) Copy the following into your local lib directory as well. You can find them in the
If you already have the following, you can ommit this step.
If you have a later version of the following jars, you can use them as well.
6.) Copy the following build target into your build.xml
7.) In your
build target, add
compile-haml to your
<target name="build" depends="clean, prepare,compile, compile-haml">
And enjoy your Haml.