v0.3.0beta (2011-07-xx):
-
Added an express adapter that allows
partial 'foo'
instead oftext @partial 'foo'
(see /examples/express). -
Added id/class shortcuts (
div '#id.class.class2', 'contents'
). -
Solved express integration issues and eliminated the need for a meryl adapter.
-
ck.render tpl, foo: 'bar'
now accessible ash1 @foo
. -
ck.render tpl, locals: {foo: 'bar'}
now implemented by default through
thewith
keyword (past behavior withdynamic_locals: true
). -
ck.render tpl, hardcode: {foo: 'bar'}
will hardcode these locals. -
Optional third param to
ck.render
. -
Gone with ck_* locals, now all implementation inside
__ck
. -
coffeescript src: 'file.coffee'
andcoffeescript 'string'
. -
coffeescript -> code()
now correctly adds coffeescript helpers to the output. -
Correctly handle numbers and booleans when used as tag contents.
-
Doctypes now editable at
coffeekup.doctypes
. Usingdoctypes['default']
instead ofdoctypes['5']
by default. Added thece
doctype. -
List of tags now editable at
coffeekup.tags
, and self-closing tags atcoffeekup.self_closing
. -
Added IE conditional comments:
ie 'lt IE8', -> 'IE 7 or less specific stuff'
(thanks @aeosynth). -
Using '.call(this);' instead of '();' in js generated by the 'coffeescript' tag.
-
In
coffeekup.render
, optioncache
is nowfalse
by default.
v0.2.3 (2011-05-06):
- Compatible with npm 1.x.
- Converting any ampersands (instead of /&(?!\w+;/) to & when escaping html.
- New CLI option -o / --output [DIR] (specifies a directory to compile into).
- Self-closing tags are now: 'area', 'base', 'basefont', 'br', 'col', 'frame', 'hr', 'img', 'input', 'link', 'meta' and 'param'.
v0.2.2 (2011-01-05):
- Updated to CoffeeScript 1.0.0 and node 0.2.6/0.3.3.
v0.2.1 (2010-11-23):
- Updated to CoffeeScript 0.9.5 and node 0.2.5/0.3.1.
- Fixed string templates compilation in opera.
v0.2.0 (2010-11-09):
- Huge performance gains, now among the fastest. See
cake benchmark
. - Compile templates into standalone functions with
coffeekup.compile
. - Option
format
to add line breaks and indentation to output. - Escape HTML automatically with the
autoescape
option, or manually with theh
local. - CLI behaviour closer to CoffeeScript's: compiles to
filename.html
by default, can watch and recompile with-w
. - CLI
-u
/--utils
option to make build-time utility locals available to templates (currently onlyrender
).