Account Options

  1. Sign in
The old Google Groups will be going away soon, but your browser is incompatible with the new version.
Google Groups Home
« Groups Home
added :. "splices" to djula [and thus cl-terrace]
There are currently too many topics in this group that display first. To make this topic appear first, remove this option from another topic.
There was an error processing your request. Please try again.
flag
  1 message - Collapse all  -  Translate all to Translated (View all originals)
The group you are posting to is a Usenet group. Messages posted to this group will make your email address visible to anyone on the Internet.
Your reply message has not been sent.
Your post will appear after it is approved by moderators
 
From:
To:
Cc:
Followup To:
Add Cc | Add Followup-to | Edit Subject
Subject:
Validation:
For verification purposes please type the characters you see in the picture below or the numbers you hear by clicking the accessibility icon. Listen and type the numbers you hear
 
nalle...@gmail.com  
View profile  
 More options Jul 17 2008, 9:04 am
From: nalle...@gmail.com
Date: Thu, 17 Jul 2008 06:04:35 -0700 (PDT)
Local: Thurs, Jul 17 2008 9:04 am
Subject: added :. "splices" to djula [and thus cl-terrace]
the keyword :. [aka :|.|, the one created by (intern "." :keyword)]
can now be used to "splice" a plist into the plist given to the
function returned by DJULA:COMPILE-TEMPLATE

so in `djula' terms

   (funcall template :a 1 :b 2 :c 3 :d 4 :e 5)

can also be written as

   (funcall template :a 1 :. '(:b 2 c 3) :d 4 :e 5)

and in `cl-terrace' terms

   (render "/template.html" :a 1 :b 2 :c 3 :d 4 :e 5)

can now be written as

   (let ((defaults1 (list :b 2 :c 3))
          (defaults2 (list :d 4 :e 5)))
     (render "/template.html" :a 1 :. defaults1 :. defaults2))


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
End of messages
« Back to Discussions « Newer topic     Older topic »