Hi Alex,

I guess the lack of responses comes from the fact that no one is really trying 
to write directives for Freemarker. Most of the time it is enough to write a 
simple templating function class and register it under 
/modules/rendering/renderers/freemarker/contextAttributes as you have tried. 
Such class can be anything with either no-arg constructor or with one annotated 
with @Inject and all params in the constructor being resolvable at runtime of 
Magnolia. Also on top of that you need to write a Magnolia module and register 
the templating class as component (see docu on modules for more details on 
that).

As for STK dependencies, if you are building something new, i would not go for 
STK as you will find it too big and intensive to learn and later limiting in 
what you can express in your webapp. There's twitter bootstrap module on forge 
that would give you much more freedom for your website so I'd suggest going w/ 
that. If however you need STK for whatever reason and you are building up your 
webapp with maven, you can simply inherit dependency management section from 
the webapp provided by magnolia that includes stk - see 
https://documentation.magnolia-cms.com/display/DOCS/Bundles+and+webapps for 
more details there.

HTH,
Jan

-- 
Context is everything: 
http://forum.magnolia-cms.com/forum/thread.html?threadId=38c77b48-fb81-42de-b4ad-b37132abc3eb


----------------------------------------------------------------
For list details, see http://www.magnolia-cms.com/community/mailing-lists.html
Alternatively, use our forums: http://forum.magnolia-cms.com/
To unsubscribe, E-mail to: <[email protected]>
----------------------------------------------------------------

Reply via email to