- got extension functions working from freemarker with namespaces. there's still the caveat that you need to use the ftl tag to include the alfresco namespace if you're using extension functions and want the file name from getXMLDocuments, but other than that it's pretty much exactly what i wanted and mimics the xsl environment perfectly.

- beginning slowly to move to new and hopefully finalized terminology.

git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/BRANCHES/WCM-DEV2/root@4171 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
This commit is contained in:
Ariel Backenroth
2006-10-20 00:56:09 +00:00
parent 11e6bdeda1
commit e808801107
10 changed files with 293 additions and 97 deletions

View File

@@ -51,6 +51,8 @@ import org.alfresco.web.bean.repository.Repository;
/**
* Provides management of template types.
*
* @author Ariel Backenroth
*/
public final class TemplatingService implements Serializable
{
@@ -213,11 +215,11 @@ public final class TemplatingService implements Serializable
WCMModel.PROP_FORM_TRANSFORMER_TYPE));
final Constructor c = templateOutputMethodType.getConstructor(NodeRef.class, NodeService.class, ContentService.class);
final TemplateOutputMethod tom = (TemplateOutputMethod)
final FormDataRenderer tom = (FormDataRenderer)
c.newInstance(tomNodeRef, this.nodeService, this.contentService);
LOGGER.debug("loaded template output method type " + tom.getClass().getName() +
" for extension " + tom.getFileExtension() + ", " + tomNodeRef);
tt.addOutputMethod(tom);
tt.addFormDataRenderer(tom);
}
catch (Exception e)
{