archimag / cl-closure-template

Common Lisp implementation of Google's Closure Templates.
Other
71 stars 24 forks source link

Не работает оператор ifempty в команде foreach. #25

Open LinkFly opened 11 years ago

LinkFly commented 11 years ago

Делаю так: //Шаблон: {template experiment2} {foreach $loc in $array} loc.val is a {$loc.val} index = {index($loc)}{\n} {ifempty} some {/foreach} {/template}

Вызов: (examples.simple:experiment2 '(:array ((:val 1) (:val 2) (:val 3))) )

Вывод: "loc.val is a 1 index = 0 loc.val is a 2 index = 1 loc.val is a 3 index = 2 "

cl-closure-template из последнего quicklisp'a: cl-closure-template-20131003-git OS: Ubuntu 12.04.3 LTS Lisp: sbcl 1.1.0