keens / zenekindarl Goto Github PK
View Code? Open in Web Editor NEWA fast template engine for Common Lisp
License: Other
A fast template engine for Common Lisp
License: Other
<html>
<body>
{{ var body }}
</body>
</html>
としてbodyにhtmlを埋め込みたいんですが
このままだとエスケープされるので
att-leafクラスを継承するatt-variableクラスでスロットauto-escapeをnilにする必要があるんですが
外部からそれをする方法が見つかりません
テンプレートファイルで{{ var body auto-escape:nil }}
と指定出来ると良いんですが
それをするためにはlexerとparserに手を入れないと駄目ですね
parserに使われているmpcもmaxpcに書き換える必要もあるように見えるんですが
色々とコンフリクトしそうです
どうすればいいですか
1- You MUST NOT do a clear-system
in your perform
method in zenekindarl-test
2- The :after
in said method, as well as the in-package
and defpackage
forms, are bad memories of ASDF 1, not needed and not recommended since ASDF 3 (2013).
3- The funcall...
can be simply (symbol-call :prove :run-test-system)
4- It is better form to put :defsystem-depends-on
before the forms that depend on it (in this case the :component
form.
5- You can slurp the contents of a file with uiop:read-file-string
; not that I recommend you do it. I believe it is poor form and doesn't help in this case.
This seems faster than with-output-to-string
.
Hi @KeenS,
I want to deprecate MPC in favor of MaxPC (not yet in Quicklisp). From my point of view MaxPC is a clear improvement in every aspect (ease of use, expressiveness, performance) over MPC, but you might disagree (it does not support ambiguous languages, and is not really monadic). This is just letting you know early that I no longer support MPC (it will remain in Quicklisp for as long as possible though, which might be forever since it does not rely on any implementation specific API).
Are you interested in transitioning to MaxPC? If so let me know any issues you have with it.
when compiling att.lisp with current SBCL (2.2.7.128), I see a bunch of errors of the following form:
; in: DEFCLASS ZENEKINDARL.ATT:ATT-VARIABLE
; '(OR :STRING :ANYTHING)
;
; caught WARNING:
; Undefined type '(OR :STRING :ANYTHING). The name starts with QUOTE: probably
; use of a quoted type name in a context where the name is not evaluated.
; in: DEFCLASS ZENEKINDARL.ATT:ATT-GENSYM
; '(OR NULL STRING)
;
; caught WARNING:
; Undefined type '(OR NULL STRING). The name starts with QUOTE: probably use of a
; quoted type name in a context where the name is not evaluated.
; in: DEFCLASS ZENEKINDARL.ATT:ATT-LEAF
; '(OR NULL T)
;
; caught WARNING:
; Undefined type '(OR NULL T). The name starts with QUOTE: probably use of a
; quoted type name in a context where the name is not evaluated.
; in: DEFCLASS ZENEKINDARL.ATT:ATT-PROGN
; 'LIST
;
; caught WARNING:
; Undefined type 'LIST. The name starts with QUOTE: probably use of a quoted type
; name in a context where the name is not evaluated.
I'd like to do something like {{{var foo}}} and have the output be {whatever foo contains}. Is this possible? Can I escape a single curly brace? Is there a literal syntax ala {{ "{" }} I could use?
My workaround is to pass in lbrace and rbrace args and do e.g. {{var lbrace}} but this seems rather hacky.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.