public class TemplateRewriter extends Object implements GadgetRewriter
| Modifier and Type | Field and Description |
|---|---|
static String |
OSML_FEATURE_NAME |
static Set<String> |
TAGS |
static String |
TEMPLATES_FEATURE_NAME |
| Constructor and Description |
|---|
TemplateRewriter(com.google.inject.Provider<TemplateProcessor> processor,
MessageBundleFactory messageBundleFactory,
Expressions expressions,
TagRegistry baseTagRegistry,
TemplateLibraryFactory libraryFactory,
ContainerTagLibraryFactory containerTags) |
public static final String TEMPLATES_FEATURE_NAME
public static final String OSML_FEATURE_NAME
@Inject public TemplateRewriter(com.google.inject.Provider<TemplateProcessor> processor, MessageBundleFactory messageBundleFactory, Expressions expressions, TagRegistry baseTagRegistry, TemplateLibraryFactory libraryFactory, ContainerTagLibraryFactory containerTags)
public void rewrite(Gadget gadget, MutableContent content) throws RewritingException
GadgetRewriterrewrite in interface GadgetRewritergadget - Gadget to rewrite.content - the content of the gadget to be manipulated.RewritingExceptionCopyright © 2007-2012. All Rights Reserved.