From sscholl at common-lisp.net Wed Jun 15 06:53:57 2005 From: sscholl at common-lisp.net (Stefan Scholl) Date: Wed, 15 Jun 2005 08:53:57 +0200 Subject: [cl-emb-announce] New release CL-EMB 0.3.2 Message-ID: <20050615065357.GR9758@parsec.no-spoon.de> New release CL-EMB 0.3.2 CL-EMB is a library to embed Common Lisp and special template tags into normal text files. Can be used for dynamically generated HTML pages. You can download it from http://common-lisp.net/project/cl-emb/ or install with ASDF-Install. CL-USER> (asdf:operate 'asdf:load-op :asdf-install) CL-USER> (asdf-install:install :cl-emb) Changes: - Bugfix regarding the template tags @include and @call The generated code wasn't correct after the API changes in 0.3.0 From sscholl at common-lisp.net Mon Jun 20 13:54:37 2005 From: sscholl at common-lisp.net (Stefan Scholl) Date: Mon, 20 Jun 2005 15:54:37 +0200 Subject: [cl-emb-announce] New release CL-EMB 0.4.0 (API CHANGES!) Message-ID: <20050620135437.GD16426@parsec.no-spoon.de> New release CL-EMB 0.4.0 CL-EMB is a library to embed Common Lisp and special template tags into normal text files. Can be used for dynamically generated HTML pages. You can download it from http://common-lisp.net/project/cl-emb/ or install with ASDF-Install. CL-USER> (asdf:operate 'asdf:load-op :asdf-install) CL-USER> (asdf-install:install :cl-emb) Changes: - Extended way to access environment (the supplied plist) with template tags. E.g.: <% @var foo/bar %> --> Like accessing (GETF (GETF ENV :FOO) :BAR) When your're inside a nested loop you can access the elements of the toplevel by starting the parameter with a slash. CL-USER> (emb:register-emb "test11" "<% @loop bands %>Band: <% @var band %> (Genre: <% @var /genre %>)
<% @endloop %>") # CL-USER> (emb:execute-emb "test11" :env '(:genre "Rock" :bands ((:band "Queen") (:band "The Rolling Stones") (:band "ZZ Top")))) "Band: Queen (Genre: Rock)
Band: The Rolling Stones (Genre: Rock)
Band: ZZ Top (Genre: Rock)
" CL-USER> (emb:register-emb "test12" "<% @repeat /foo/bar/count %>*<% @endrepeat %>") # CL-USER> (emb:execute-emb "test12" :env '(:foo (:bar (:count 42)))) "******************************************"