You do not have permission to delete messages in this group
Copy link
Report message
Show original message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to dotliquid
Hi,
I have two questions about aborting processing/rendering in the
engine. The first is that I'm wondering if it's possible at all. Since
I'll be allowing users to edit templates, I'd like a way to time them
out if they do something like trigger an infinite loop.
The second question I have (which might be answered by the first) is
if there's a way to abort processing from within a tag. I'd like to
provide some switches or "early exit" opportunities for template
authors (something like "this doesn't apply, so don't use this
template"). That would allow the template to serve a dual purpose as
both a template and, when appropriate, like a controller.
If aborting isn't available right now, I'd be happy to take a look and
submit a pull request. Any hints on where the most appropriate place
to put such functionality would be?
Thanks!
Tim Jones
unread,
May 20, 2012, 10:03:53 AM5/20/12
Reply to author
Sign in to reply to author
Forward
Sign in to forward
Delete
You do not have permission to delete messages in this group
Copy link
Report message
Show original message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to dotl...@googlegroups.com
Hi Dave,
There's nothing in DotLiquid for this at the moment. That said, couldn't you use the TPL? Something like: