Skip to content

Converts html templates into javascript variables during build. this would be helpful while using any javascript based template frameworks.

Notifications You must be signed in to change notification settings

balachandra/add-to-javascript

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

8 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

add-to-javascript

Converts html templates into javascript variables during build. this would be helpful while using any javascript based template frameworks.

Usage:

<plugin>
   <groupId>com.satmetrix</groupId>
   <artifactId>add-to-javascript</artifactId>
   <version>0.2</version>
      <executions>
          <execution>
             <phase>package</phase>
             <goals>
                <goal>run</goal>
             </goals>
          </execution>
      </executions>
      <configuration>
         <fileType>html</fileType>
         <sourceFolder>
	    <param>${basedir}/target/template/folder</param>
	 </sourceFolder>
	 <outputDir>${basedir}/target/js/folder</outputDir>
      </configuration>
</plugin>

Dependencies:

This plugin uses yuicompressor for minifying compiled output

About

Converts html templates into javascript variables during build. this would be helpful while using any javascript based template frameworks.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages