fnug.resource
Class DustCompiledResource
java.lang.Object
fnug.resource.AbstractResource
fnug.resource.DefaultResource
fnug.resource.AbstractCompiledResource
fnug.resource.DustCompiledResource
- All Implemented Interfaces:
- HasBundle, HasLastModifiedBytes, Resource
public class DustCompiledResource
- extends AbstractCompiledResource
Method Summary |
protected byte[] |
compile(byte[] source)
Subclasses must implement to do the compilation of this resource. |
boolean |
isJs()
Dust templates are JS. |
DustCompiledResource
public DustCompiledResource(String basePath,
String path)
- Constructs setting base path and path.
- Parameters:
basePath
- The base path of the resource. See AbstractResource.getBasePath()
.path
- The path of the resource. See AbstractResource.getPath()
.
isJs
public boolean isJs()
- Dust templates are JS. So return true.
- Specified by:
isJs
in interface Resource
- Overrides:
isJs
in class AbstractResource
- Returns:
- true
compile
protected byte[] compile(byte[] source)
- Subclasses must implement to do the compilation of this resource.
- Specified by:
compile
in class AbstractCompiledResource
- Parameters:
source
- the source bytes.
- Returns:
- the compiled bytes`
Copyright © 2012. All Rights Reserved.