Details
Description
Need to integrate som macros that will allow injecting links and variables into text.
We can adopt ##(\d*)## placeholder mechanism to allow arbitrary parameters to ContentService.getContentBody(id, params).
So that params[0] corresponds to ##0##, params[1] to ##1## etc.
Content service should also expose replacement mechanism to allow manual use on arbitrary strings
ContentService.injectParameters(content, params);
Potentially we need to adapt macros to do the following as well:
Url links: ##contentURL('uri')##, ##categoryURL('uri')## and ##productURL('uri')##
And inclusion of simple templates like: ##include('contentId')##
We also may want to look into providing runtime context into templates to make it more dynamic. Through this context we may pass objects like category, product, user and so on.
Some info on how to render component into a string in wicket: https://cwiki.apache.org/confluence/display/WICKET/Rendering+Panel+to+a+String
We possibly need to think about re-doing the whole storefront as "Spring MVC+jsp", with html5 and latest jquery web frameworks seem pointless at this point.