1 | **v0.3.1edge** (unreleased):
|
2 |
|
3 | **v0.3.1** (2011-09-29):
|
4 |
|
5 | - Fixed #71: indexOf not supported in IE7 (thanks @jaekwon).
|
6 | - Added better error reporting to express adapter. [benekastah]
|
7 | - Added `yield`: see `/docs/reference.md`. Closes #16 (thanks @pyrotechnick, @colinta and @smathy).
|
8 | - Added prefixed attributes: `data: {icon: 'foo.png'}` renders as `data-icon="foo.png"`. [colinta]
|
9 | - Added functions as attribute values: `onclick: -> alert 'hi'`. Closes #79 (thanks @smathy).
|
10 |
|
11 | **v0.3.0** (2011-09-04):
|
12 |
|
13 | - Fixed #64 (`hardcode` option masked in express adapter). [smathy]
|
14 | - Added missing elements from the HTML 5 spec (both valid and obsolete). Closes #66 (thanks @aeosynth).
|
15 | - Added compile to js option to CLI. Closes #58. [rachel-carvalho]
|
16 | - Fixed #69 (`coffeekup -w` only compiles upon first change). [rachel-carvalho]
|
17 |
|
18 | **v0.3.0beta** (2011-07-27):
|
19 |
|
20 | - Added documentation: API reference at `/docs/reference.md` and annotated source at `/docs/coffeekup.html`.
|
21 |
|
22 | - Added id/class shortcuts: `div '#id.class.class2', 'contents'` (thanks @aeosynth and @payload).
|
23 |
|
24 | - Added IE conditional comments: `ie 'lt IE8', -> 'IE 7 or less stuff'` (thanks @aeosynth).
|
25 |
|
26 | - Added `ck.adapters.express` which allows `partial 'foo'` instead of `text @partial 'foo'` - see `/examples/express` (thanks @cushman).
|
27 |
|
28 | - Added `coffeescript src: 'file.coffee'` and `coffeescript 'string'` - see reference (thanks @henrikh).
|
29 |
|
30 | - Changed the template param format to align with Express and other templating engines. Now `tpl(foo: 'bar')` makes `foo` accessible as `h1 @foo`. `context` is not used anymore.
|
31 |
|
32 | - `tpl(locals: {foo: 'bar'})` now always implemented through the `with` keyword (past behavior with `dynamic_locals: true`).
|
33 |
|
34 | - `tpl(hardcode: {foo: 'bar'})` will hardcode `foo` into the compiled template's body (past behavior with `dynamic_locals: false`).
|
35 |
|
36 | - Fixed: `coffeescript -> code()` now correctly adds CoffeeScript helpers to the output.
|
37 |
|
38 | - Changed: using `.call(this);` instead of `();` in js generated by `coffeescript`.
|
39 |
|
40 | - Fixed: correctly handle numbers and booleans when used as tag contents or attribute values.
|
41 |
|
42 | - Fixed #50: "`coffeekup -w` quits on syntax error".
|
43 |
|
44 | - Added: doctypes now editable at `coffeekup.doctypes`, tags at `coffeekup.tags`, and self-closing tags at `coffeekup.self_closing`.
|
45 |
|
46 | - Added the `ce` doctype.
|
47 |
|
48 | - Changed: using `doctypes['default']` instead of `doctypes['5']` by default.
|
49 |
|
50 | - Changed: in `coffeekup.render`, option `cache` is now `false` by default.
|
51 |
|
52 | - Added a third optional param to `render`. You can pass an object with options and they will be merged with the main object param.
|
53 |
|
54 | - Removed ck_* locals, now all implementation inside the `__ck` object.
|
55 |
|
56 | **v0.2.3** (2011-05-06):
|
57 |
|
58 | - Compatible with npm 1.x.
|
59 | - Converting any ampersands (instead of /&(?!\w+;/) to & when escaping html.
|
60 | - New CLI option -o / --output [DIR] (specifies a directory to compile into).
|
61 | - Self-closing tags are now: 'area', 'base', 'basefont', 'br', 'col', 'frame', 'hr', 'img', 'input', 'link', 'meta' and 'param'.
|
62 |
|
63 | **v0.2.2** (2011-01-05):
|
64 |
|
65 | - Updated to CoffeeScript 1.0.0 and node 0.2.6/0.3.3.
|
66 |
|
67 | **v0.2.1** (2010-11-23):
|
68 |
|
69 | - Updated to CoffeeScript 0.9.5 and node 0.2.5/0.3.1.
|
70 | - Fixed string templates compilation in opera.
|
71 |
|
72 | **v0.2.0** (2010-11-09):
|
73 |
|
74 | - Huge performance gains, now among the fastest. See `cake benchmark`.
|
75 | - Compile templates into standalone functions with `coffeekup.compile`.
|
76 | - Option `format` to add line breaks and indentation to output.
|
77 | - Escape HTML automatically with the `autoescape` option, or manually with the `h` local.
|
78 | - CLI behaviour closer to CoffeeScript's: compiles to `filename.html` by default, can watch and recompile with `-w`.
|
79 | - CLI `-u`/`--utils` option to make build-time utility locals available to templates (currently only `render`).
|
80 |
|