Dragonfly eval-template

A web framework in newLISP

Dragonfly eval-template

Postby cormullion » Mon Nov 30, 2009 7:43 pm

I'm experimenting with adding another layer of evaluation locally... using something like eval-template. The idea is to incorporate dynamic newLISP code that converts to HTML that is then subsequently processed through Dragonfly:eval-template (and presumably unevaluated because it's already been evaluated once).

Just wondering about the default selection of

Code: Select all
<% and %>


to mark code sections. I know you can choose different OPEN and CLOSE tags in config.lsp... But are there other character combinations that can be assumed to be absent in typical HTML? Were these chosen for compatibility with other template systems or is it just a good choice for HTML templates? And are their any combinations that wouldn't be suitable in Dragonfly?
cormullion
 
Posts: 2037
Joined: Tue Nov 29, 2005 8:28 pm
Location: latiitude 50N longitude 3W

Re: Dragonfly eval-template

Postby itistoday » Tue Dec 01, 2009 5:07 am

They're commonly used delimiters for template systems because they make use of the angle-brackets, which have a special meaning in HTML (to denote tags). For that reason they're used as the default in Dragonfly as well.
Get your Objective newLISP groove on.
itistoday
 
Posts: 413
Joined: Sun Dec 02, 2007 5:10 pm
Location: I'm sitting right next to you. :)

Re: Dragonfly eval-template

Postby cormullion » Tue Dec 01, 2009 6:02 pm

gotcha. I think I need to find tags that pass unharmed through the preliminary phase of constructing HTML, eg using a blogging tool such as MarsEdit or Ecto or text formatting tools such as Markdown either. It might be best to find something that means nothing to anybody except eval-template and it's current tags so that it passes through unharmed.
cormullion
 
Posts: 2037
Joined: Tue Nov 29, 2005 8:28 pm
Location: latiitude 50N longitude 3W


Return to Dragonfly

Who is online

Users browsing this forum: No registered users and 1 guest