Dynamic templates vs (and other special characters)

2013-09-27 Thread Barry Books
Is there any way to but a sign in a dynamic template and have it rendered as ''. I end up with 'gt;' which is not what I want. I know the suggestion for tml files is to use outputRaw but that does not work in a dynamic template. Thanks Barry

Re: Dynamic templates vs (and other special characters)

2013-09-27 Thread Dmitry Gusev
I'm always having issues with these characters when I try to put JavaScript logic, like for (var i = 0; i 10; i++) or if (ab) {}. I haven't found better approach than moving this code out of template to external *.js files. On Fri, Sep 27, 2013 at 6:08 PM, Barry Books trs...@gmail.com wrote:

Re: Dynamic templates vs (and other special characters)

2013-09-27 Thread Michael
script //!-- //Any code, any characters //-- /script script //![CDATA[ //Any code, any characters //]] /script But you won't be able to use ${vars} in this sections. 27.09.2013 18:38, Dmitry Gusev пишет: I'm always having issues with these characters when I try to put JavaScript logic,

Re: Dynamic templates vs (and other special characters)

2013-09-27 Thread Dmitry Gusev
Michael, that won't work, because in this case CDATA is just a handy tool to allow XML parser to encode special characters as entities himself without you to manually converting to gt; You can test it yourself: script //![CDATA[ var a = 0; if (a 1) { alert('a 1'); } else { alert('a = 1');

Re: Dynamic templates vs (and other special characters)

2013-09-27 Thread Barry Books
Unfortunately this is plain text coming from a database that's used as the template for the Dynamic component. It's in a style tag so it really needs to be and since it is user input I can't just move it into another file. On Fri, Sep 27, 2013 at 9:38 AM, Dmitry Gusev

Re: Dynamic templates vs (and other special characters)

2013-09-27 Thread Dmitry Gusev
I know this isn't solution, just a thought. But if that is inline styles, probably you can use external *.css files and embed them using style href=file.css? On Fri, Sep 27, 2013 at 7:03 PM, Barry Books trs...@gmail.com wrote: Unfortunately this is plain text coming from a database that's used

Re: Dynamic templates vs (and other special characters)

2013-09-27 Thread Barry Books
The long story is I have a CKEditor component that allows site admins to select content on a page and edit it. I do this with the Dynamic component. Occasionally I need to put a style tag in the template to override the default styling for the page. In this case I have a template like: span

Re: Dynamic templates vs (and other special characters)

2013-09-27 Thread Thiago H de Paula Figueiredo
from any place, is a good choice for including stuff written by non-developers in a WYSIWYG editor. I'd use OutputRaw instead of dynamic templates, not inside them. By the way, you said OutputRaw doesn't work inside dynamic templates, but didn't really explain what you meant

Re: Dynamic templates vs (and other special characters)

2013-09-27 Thread Barry Books
, which is basically Tapestry templates loaded from any place, is a good choice for including stuff written by non-developers in a WYSIWYG editor. I'd use OutputRaw instead of dynamic templates, not inside them. By the way, you said OutputRaw doesn't work inside dynamic templates, but didn't really

Re: Dynamic templates vs (and other special characters)

2013-09-27 Thread Martin Kersten
editor. I'd use OutputRaw instead of dynamic templates, not inside them. By the way, you said OutputRaw doesn't work inside dynamic templates, but didn't really explain what you meant by that. Of course, I don't know well your scenario, so my suggestion here may not the best

Dynamic templates

2009-07-21 Thread Kai Weber
application. In the end I want dynamic templates to be as much flexible as possible and give my users the ability to put anything they want in it. But I do not know how I could achive flexiblity when the HTML contains Elements which are normally rendered through Tapestry components (Link, Form

Re: Dynamic templates

2009-07-21 Thread Thiago H. de Paula Figueiredo
Em Tue, 21 Jul 2009 13:32:05 -0300, Kai Weber kai.we...@glorybox.de escreveu: Hello Tapestriers: Hi! ${content} should be filled from properties/file/database whatever. My problem: it can contain links to other pages in my application. I would use a template engine like Velocity or

Re: Dynamic templates

2009-07-21 Thread Juan E. Maya
If u want to explore the template alternative proposed by Thiago Chenillkit has a module that provides freemarker and velocity services. http://www.chenillekit.org/chenillekit-template/index.html On Tue, Jul 21, 2009 at 7:01 PM, Thiago H. de Paula Figueiredothiag...@gmail.com wrote: Em Tue, 21