public final class TemplateResource extends Object
| Modifier and Type | Class and Description |
|---|---|
static class |
TemplateResource.Type |
| Modifier and Type | Method and Description |
|---|---|
String |
getContent() |
TemplateResource.Type |
getType() |
boolean |
isSafe() |
static TemplateResource |
newJavascriptResource(String javascript,
TemplateLibrary library)
Create a Javascript resource.
|
static TemplateResource |
newStyleResource(String style,
TemplateLibrary library)
Create a CSS resource.
|
String |
toString() |
public static TemplateResource newJavascriptResource(String javascript, TemplateLibrary library)
javascript - the script contentlibrary - the library that is the source of the scriptpublic static TemplateResource newStyleResource(String style, TemplateLibrary library)
style - the CSS contentlibrary - the library that is the source of the contentpublic String getContent()
public TemplateResource.Type getType()
public boolean isSafe()
Copyright © 2007-2012. All Rights Reserved.