You could use if/else blocks in your text templates.

On Friday, December 7, 2012, Nick Pratt wrote:

> Do TextTemplate's aggregate, and can that aggregate be provided as a single
> Resource?
>
> N
>
> On Fri, Dec 7, 2012 at 3:28 AM, Martin Grigorov 
> <mgrigo...@apache.org<javascript:;>
> >wrote:
>
> > You can also use TextTemplate(s) to construct/concat the JS dynamically.
> >
> >
> > On Fri, Dec 7, 2012 at 12:51 AM, Nick Pratt 
> > <nbpr...@gmail.com<javascript:;>>
> wrote:
> >
> > > I currently have a single javascript file in a custom Behavior that Id
> > like
> > > to conditionally include sections of depending on provided user
> options.
> > >
> > > Whats the best way to achieve this?
> > >
> > > Split the single file in to, say 3 separate JS files and then
> > conditionally
> > > include them in Java during the renderHead() of my Behavior? Is there a
> > > better way?
> > >
> > >
> > > Nick
> > >
> >
> >
> >
> > --
> > Martin Grigorov
> > jWeekend
> > Training, Consulting, Development
> > http://jWeekend.com <http://jweekend.com/>
> >
>


-- 
Jeremy Thomerson
http://wickettraining.com
*Need a CMS for Wicket?  Use Brix! http://brixcms.org*

Reply via email to