hogancompile-maven-plugin is a maven plugin for compiling Hogan.js templates while building project.
- Use the plugin in your project as following :
<project>
<build>
<plugins>
<plugin>
<groupId>net.champemont.jean.hogancompile</groupId>
<artifactId>hogancompile-maven-plugin</artifactId>
<version>1.0.1</version>
<executions>
<execution>
<phase>generate-sources</phase>
<goals>
<goal>hulk-hogan</goal>
</goals>
</execution>
</executions>
</plugin>
</plugins>
</build>
</project>
Here is the full configuration options, with default values :
<configuration>
<!-- One or more pattern used to match templates files name and location -->
<includes>
<param>**/*.mustaches</param>
</includes>
<!-- One or more pattern to exclude files included by the previous option -->
<excludes></excludes>
<!-- Encoding used to decode template files. Uses ${project.build.sourceEncoding} if available -->
<sourceEncoding>UTF-8</sourceEncoding>
<!-- Encoding used to encode output files. Uses ${project.build.sourceEncoding} if available -->
<outputEncoding>UTF-8</outputEncoding>
</configuration>
Have a bug? A pull request? Please create an issue here on GitHub. https://github.com/jchampem/hogancompile-maven-plugin/issues
Copyright 2014 Jean Champémont Licensed under the Apache License, Version 2.0: http://www.apache.org/licenses/LICENSE-2.0