Le 20/04/2010 19:18, Thomas Mortagne a écrit :
On Tue, Apr 20, 2010 at 19:00, Guillaume Sauthier
<[email protected]>  wrote:
Hi guys

Just wanted you to know that, in OW2, we have a substitution engine (called
interpolator in commons-lang) that handles property substitution nicely.
Syntax of the property is configurable (${} / #[] / ...), tree based
property resolution (${hello.${me}}), recursive substitution (if a resolved
property value contains another property) are supported...
It's also easily extensible (you can bind a resolver to any source).
Sounds good i will definitely adding it to my list of things to look
at for new l10n module and rendering needs. But i don't know when
since i'm not really actively working on it right now, i sent previous
mail to have it written somewhere to not forget about the idea ;)

Glad to hear that it could be useful to someone else :)
--G

Let me know if you want more informations...

The module source:
http://websvn.ow2.org/listing.php?repname=easybeans&path=%2Ftrunk%2Futil%2Fmodules%2Fsubstitution%2F

Usage example:
http://websvn.ow2.org/filedetails.php?repname=easybeans&;
path=%2Ftrunk%2Futil%2Fmodules%2Fsubstitution%2Fsrc%2Ftest%2Fjava%2Forg%2Fow2%2Futil%2Fsubstitution%2Ftest%2FDefaultSubstitutionEngineTestCase.java

--Guillaume

Le 20/04/2010 17:35, Thomas Mortagne a écrit :
macro "document" field description.

_______________________________________________
devs mailing list
[email protected]
http://lists.xwiki.org/mailman/listinfo/devs




<<attachment: Guillaume_Sauthier.vcf>>

_______________________________________________
devs mailing list
[email protected]
http://lists.xwiki.org/mailman/listinfo/devs

Reply via email to