Expose STKUtil as EL functions

View: New views
3 Messages — Rating Filter:   Alert me  

Expose STKUtil as EL functions

by Thomas Duffey :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message


Hi,

Is it reasonable to submit a patch that exposes some/all of the  
STKUtil methods as JSP 2.0 EL functions?  This would be useful to  
those of us who want to use parts of the STK but do not want to use  
Freemarker where it is already available.

Tom


----------------------------------------------------------------
For list details see
http://www.magnolia-cms.com/home/community/mailing-lists.html
To unsubscribe, E-mail to: <dev-list-unsubscribe@...>
----------------------------------------------------------------


Re: Expose STKUtil as EL functions

by Philipp Bärfuss :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message


> Is it reasonable to submit a patch that exposes some/all of the  
> STKUtil methods as JSP 2.0 EL functions?  This would be useful to  
> those of us who want to use parts of the STK but do not want to use  
> Freemarker where it is already available.

This is what we had in mind (especially for the mgnl object  
'MagnoliaTemplateUtilities'). Such a patch would be accepted. Just  
create a jira ticked and attach your patch.

Thanks!

Philipp
Magnolia International Ltd.

---------------------------------------
  Meet us at the Magnolia Conference
  http://www.magnolia-cms.com/conference
---------------------------------------

Magnolia®  - Simple Open Source Content Management


----------------------------------------------------------------
For list details see
http://www.magnolia-cms.com/home/community/mailing-lists.html
To unsubscribe, E-mail to: <dev-list-unsubscribe@...>
----------------------------------------------------------------


Re: Expose STKUtil as EL functions

by gregoryjoseph :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message



On Jun 29, 2009, at 10:35 AM, Philipp Bärfuss wrote:

>
>> Is it reasonable to submit a patch that exposes some/all of the  
>> STKUtil methods as JSP 2.0 EL functions?  This would be useful to  
>> those of us who want to use parts of the STK but do not want to use  
>> Freemarker where it is already available.
>
> This is what we had in mind (especially for the mgnl object  
> 'MagnoliaTemplateUtilities'). Such a patch would be accepted. Just  
> create a jira ticked and attach your patch.

Let's just keep in mind that MagnoliaTemplateUtilities is not static.  
It's currently stateless, but that *could* change (think IoC). EL  
functions are supposed to be all static, so that might be a problem at  
some point.
(I once found a tool/taglib that allowed dynamic wrapping of objects  
(such as MagnoliaTemplateUtilities) into a taglib/functions - which  
could be useful here -- can't find it right now)

-g


----------------------------------------------------------------
For list details see
http://www.magnolia-cms.com/home/community/mailing-lists.html
To unsubscribe, E-mail to: <dev-list-unsubscribe@...>
----------------------------------------------------------------