[Djula] Safe subset?

7 views
Skip to first unread message

Bob Hutchison

unread,
Jul 30, 2008, 8:07:57 AM7/30/08
to cl-te...@googlegroups.com, Bob Hutchison
Hi,

Is there a way to ensure that only the safe subset of Djula is allowed
in a template? For example, turn off the evaluation of arbitrary lisp
expressions?

Cheers,
Bob

Nick Allen

unread,
Jul 31, 2008, 9:44:10 AM7/31/08
to cl-te...@googlegroups.com
Not at the moment, I will add a tick for turning off lisp tags and filters asap. Anything else it should do?

Nick

Bob Hutchison

unread,
Aug 1, 2008, 7:14:52 AM8/1/08
to cl-te...@googlegroups.com, Bob Hutchison

Since I'm not yet familiar with Djula, I don't know :-)

Thanks!

Bob

>
>
> Nick
>
> >

nall...@gmail.com

unread,
Aug 11, 2008, 8:44:51 PM8/11/08
to cl-terrace


On Aug 1, 1:14 pm, Bob Hutchison <hutch-li...@recursive.ca> wrote:
> On 31-Jul-08, at 9:44 AM, Nick Allen wrote:
>
> > On Wed, Jul 30, 2008 at 2:07 PM, Bob Hutchison <hutch-li...@recursive.ca
> > >wrote:
>
> >> Hi,
>
> >> Is there a way to ensure that only the safe subset of Djula is  
> >> allowed
> >> in a template? For example, turn off the evaluation of arbitrary lisp
> >> expressions?

ok, there is now a variable *TEMPLATE-EVAL* that, if set to NIL turns
off {% lisp %} tags and "lisp" filters. they throw a template error if
the designer tries to use them and *TEMPLATE-EVAL* is NIL

take care

Nick

Bob Hutchison

unread,
Aug 11, 2008, 8:47:02 PM8/11/08
to cl-te...@googlegroups.com, Bob Hutchison

Thanks, Nick!

Cheers,
Bob

>
>
> take care
>
> Nick
> >

Reply all
Reply to author
Forward
0 new messages