On 04/19/2011 10:04 AM, Russell Senior wrote:
> I am looking for suggestions for a templating system.  I need to
> generate a tree of configuration files to "bake" into a firmware
> image.  My tree overlays (replaces) the standard configuration to
> localized it for a particular situation.  I have rolled my own in Perl
> and sed, primarily, but it seems like this problem is not unique to me
> and SOMEONE MUST HAVE DONE THIS BETTER BEFORE!
>
> I'd like something that supports some if-then-else logic as well as
> variable replacement.  For example, the config files might be shaped
> different if I am bridging rather than routing.  Or different target
> devices might have different numbers or types of interfaces.
>
> Can anybody suggest something they like?
>
If you can tolerate a Java-based solution, Velocity is really nice. 
Simple, expressive in-template language with variable replacement, 
conditional flow control, and expressions. Well-supported, mature 
framework. The only real Java skill required to use it is the ability to 
construct a command line to generate your output.

________________________________________
Joe Shisei Niski
Portland, Oregon, USA
至誠

_______________________________________________
PLUG mailing list
[email protected]
http://lists.pdxlinux.org/mailman/listinfo/plug

Reply via email to