<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Share same freemarker template across multiple WebScript in Alfresco Archive</title>
    <link>https://connect.hyland.com/t5/alfresco-archive/share-same-freemarker-template-across-multiple-webscript/m-p/283577#M236707</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Hi,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I have an application where a lot of webscript are listing always the same json output (an array of documents and their properties).&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;So, i need to have different business logic that renders always the same output.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;So, i'm copying over and over the same webscript.get.json.ftl file for every webscript.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Is there any way to reuse the same freemarker file for output ?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Thank you&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 04 Apr 2014 14:51:20 GMT</pubDate>
    <dc:creator>soldiertt</dc:creator>
    <dc:date>2014-04-04T14:51:20Z</dc:date>
    <item>
      <title>Share same freemarker template across multiple WebScript</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/share-same-freemarker-template-across-multiple-webscript/m-p/283577#M236707</link>
      <description>Hi,I have an application where a lot of webscript are listing always the same json output (an array of documents and their properties).So, i need to have different business logic that renders always the same output.So, i'm copying over and over the same webscript.get.json.ftl file for every webscrip</description>
      <pubDate>Fri, 04 Apr 2014 14:51:20 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/share-same-freemarker-template-across-multiple-webscript/m-p/283577#M236707</guid>
      <dc:creator>soldiertt</dc:creator>
      <dc:date>2014-04-04T14:51:20Z</dc:date>
    </item>
    <item>
      <title>Re: Share same freemarker template across multiple WebScript</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/share-same-freemarker-template-across-multiple-webscript/m-p/283578#M236708</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;I'm afraid you can't without modifying webscript framework source code.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Since a lot of webscript share the same json output,I guess there should be a lot common in them.Why not try to combine them in to one or several webscipts ?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Tell me if I am wrong.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 04 Apr 2014 15:17:34 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/share-same-freemarker-template-across-multiple-webscript/m-p/283578#M236708</guid>
      <dc:creator>kaynezhang</dc:creator>
      <dc:date>2014-04-04T15:17:34Z</dc:date>
    </item>
    <item>
      <title>Re: Share same freemarker template across multiple WebScript</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/share-same-freemarker-template-across-multiple-webscript/m-p/283579#M236709</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;You can simply declare one macro in one ftl file which renders the json output and you can call this macro by including that ftl file in any of your response ftl file.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;You can have a look at OOB file "person.get.json.ftl &amp;amp;&amp;amp; person.lib.ftl" for your reference.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Hope this helps.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Thanks&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 09 Apr 2014 09:58:32 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/share-same-freemarker-template-across-multiple-webscript/m-p/283579#M236709</guid>
      <dc:creator>aaditvmajmudar</dc:creator>
      <dc:date>2014-04-09T09:58:32Z</dc:date>
    </item>
  </channel>
</rss>

