I am using CMS to store Freemarker templates. These freemarker templates are called inside the Screen Widgets using Content element. My freemarker templates also include other screens as well as HTML tags such as <div>. Screens inside the freemarker template are rendered using render.screen(“ScreenName”) method.
Now the problem is, when Freemarker template is rendered it renders the screen properly but the HTML tags part of the freemarker templates are rendered after the render.screen() call irrespective of the location of the html tags in the FTL template. Only difference between what I am doing and out of the box code is that FTL templates are stored in the CMS instead of the file system and called inside the screen widget using the Content (or SubContent) element instead of “platform-specific element”. I am not sure what is the difference in freemarker rendering when template is stored in the CMS. Can someone point me to the right code to look into this problem. Thanks & Regards Ganesh Bawne
