org.apache.shindig.gadgets.templates
Class TemplateResource
java.lang.Object
org.apache.shindig.gadgets.templates.TemplateResource
public final class TemplateResource
- extends Object
Encapsulation of a single resource imported by a library for template
execution.
newJavascriptResource
public static TemplateResource newJavascriptResource(String javascript,
TemplateLibrary library)
- Create a Javascript resource.
- Parameters:
javascript - the script contentlibrary - the library that is the source of the script
newStyleResource
public static TemplateResource newStyleResource(String style,
TemplateLibrary library)
- Create a CSS resource.
- Parameters:
style - the CSS contentlibrary - the library that is the source of the content
getContent
public String getContent()
getType
public TemplateResource.Type getType()
isSafe
public boolean isSafe()
toString
public String toString()
- Overrides:
toString in class Object
Copyright © 2007-2012. All Rights Reserved.