Re: #setprops directive committed

Marcello H <[email protected]> Tue, 18 Oct 2005 06:52:26 +0200
Newsgroups gmane.comp.java.webmacro.user
Message-ID <[email protected]>
The #setprops directive would also be nice if the data is really coming
out of a property file; something like

#setprops as file "myprops.ini"

It would do the same as if the properties where typed in between your
accolades '{ .... }' and of course the content needs to get parsed, so
that the Type = $User.TYPE_STANDARD still works.

BTW the directive isn't mentioned in the directive page! (Hint)


I'm not that busy with Webmacro at this moment but want to thank you for
this enhancement. This keeps the project alive and kicking!

Keep up the good work everybody!




2005/10/17, Keats Kirsch <[email protected]>:
> I have (finally) committed the SetpropsDirective (fka
> PropertiesDirective).
>
> Documentation can be found at http://www.webmacro.org/SetpropsDirective.
>
> Unit tests can be found in org.webmacro.template.TestSetpropsDirective.java.
>
> As part of this effort, I also refactored the BeanDirective, allowing
> both classes to share a class loading mechanism that supports the
> AllowedPackages and ImpliedPackages configuration properties.  (Other
> directive can also use this feature by invoking the
> org.webmacro.util.Instantiator class.)  I have deprecated the
> BeanDirective prefix for these properties, so you should now just
> specify them like:
>
> AllowedPackages=java.util,org.webmacro.util
> ImpliedPackages=java.util,org.webmacro,org.webmacro.util
>
> Please try this out and give me feedback.
>
> Keats
>
>
>
>
> -------------------------------------------------------
> This SF.Net email is sponsored by:
> Power Architecture Resource Center: Free content, downloads, discussions,
> and more. http://solutions.newsforge.com/ibmarch.tmpl
> _______________________________________________
> Webmacro-user mailing list
> [email protected]
> https://lists.sourceforge.net/lists/listinfo/webmacro-user
>


-------------------------------------------------------
This SF.Net email is sponsored by:
Power Architecture Resource Center: Free content, downloads, discussions,
and more. http://solutions.newsforge.com/ibmarch.tmpl