Skip to content
This repository has been archived by the owner on Jan 27, 2019. It is now read-only.

jchampemont/hogancompile-maven-plugin

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

21 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Hogan Compile Maven Plugin

hogancompile-maven-plugin is a maven plugin for compiling Hogan.js templates while building project.

Usage

  • 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>

Configuration

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>

Issues

Have a bug? A pull request? Please create an issue here on GitHub. https://github.com/jchampem/hogancompile-maven-plugin/issues

License

Copyright 2014 Jean Champémont Licensed under the Apache License, Version 2.0: http://www.apache.org/licenses/LICENSE-2.0

About

Maven plugin to compile Hogan.js templates

Resources

License

Stars

Watchers

Forks

Packages

No packages published