CL-EMB

CL-EMB is a library to embed Common Lisp and special template tags into normal text files.
Download

CL-EMB Ranking & Summary

Advertisement

  • Rating:
  • License:
  • LGPL
  • Price:
  • FREE
  • Publisher Name:
  • Stefan Scholl
  • Publisher web site:
  • http://common-lisp.net/project/cl-emb/

CL-EMB Tags


CL-EMB Description

CL-EMB is a library to embed Common Lisp and special template tags into normal text files. CL-EMB is a library to embed Common Lisp and special template tags into normal text files. CL-EMB library can be used for dynamically generated HTML pages.Installation:CL-EMB can be installed with ASDF-INSTALL.See http://weitz.de/asdf-install/ for further information.Usage:EXECUTE-EMB name &key env generator-maker => stringNAME can be a registered (with REGISTER-EMB) emb code or a pathname (type PATHNAME) of a file containing the code. Returns a string. Keyword parameter ENV to pass objects to the code. ENV must be a plist. ENV can be accessed within your emb code. The GENERATOR-MAKER is a function which gets called with a key and value from the given ENV and should return a generator function like described on http://www.cs.northwestern.edu/academics/courses/325/readings/graham/generators.htmlREGISTER-EMB name code => emb-functionInternally registeres given CODE with NAME to be called with EXECUTE-EMB. CODE can be a string or a pathname (type PATHNAME) of a file containing the code.PPRINT-EMB-FUNCTION nameDEBUG function. Pretty prints function form, if *DEBUG* was T when the function was registered.CLEAR-EMB nameRemove named emb code.CLEAR-EMB-ALLRemove all registered emb code.CLEAR-EMB-ALL-FILESRemove all registered file emb code (registered/executed by a pathname).*EMB-START-MARKER* (default "")End of scriptlet or expression.*ESCAPE-TYPE*Default value for escaping @var output is :RAWCan be changed to :XML, :HTML, :URI, :URL, :URL-ENCODE*FUNCTION-PACKAGE*Package the emb function body gets interned to.Default: (find-package :cl-emb-intern)*DEBUG*Debugging mode if T. Default: NIL*LOCKING-FUNCTION*Function to call to lock access to an internal hash table. Must accept a function designator which must be called with the lock hold. IMPORTANT: The locking function must return the value of the function it calls!Requirements:· CL-PPCREWhat's New in This Release:· Faster file reading, new template tag @insert


CL-EMB Related Software