Compiler now inserts `__.bd=1` into templates if they contain any block declarations, even if the block is not declared at runtime Cleanup runtime: remove unsafe block action stuff, etc. Includes now check `info.bd` to see if the included template contains any block declarations; if not, the included HTML can be safely captured and wrapped in a branch label (closes #116) "foreach" items are now separately reactive and wrapped in `LiveUpdate.isolate` calls
Fixed a bug with runtime.resolve() (fixes #113)
Fix a bug that causes Meteor support to break completely
Worked on a bunch of Meteor stuff: - Fixed some behavior when mixing blocks and element preservation - Added branch label for foreach blocks (fixes #102) - Fixed a bug in the Meteor smart package file
`blade.runtime.foreach` now works on Cursor Objects, Arrays, and plain Objects even in Meteor Inline Blade event handlers now work the same as Meteor events Cleaned up runtime-meteor.js
Moved uglify function to blade utility file
Added sane branch label for constant block Compiler now always exposes filename via buf.filename runtime: modified info.eventHandlers to match Meteor's event map specification runtime: Updated blade.LiveUpdate object with sane no-op functions Live UI plugin: - major re-work - now depends on Spark standalone package (see https://github.com/meteor/meteor/wiki/Spark) - Removed blade.Runtime.render(...) - Removed Context code (this is a part of Spark) - Landmarks have preservation enabled by default using preserve-inputs package (see https://github.com/meteor/meteor/blob/master/packages/preserve-inputs/preserve-inputs.js) Added some tests Added some documentation
Refactored Meteor smart package Improved Meteor runtime to allow included templates to access their helpers (addresses #103) - Fix not tested liveui: Added on_invalidate_clean function to Context instead of relying on the function's name to be set. Uglify can mangle function names.
Merge branch 'master' of github.com:bminer/node-blade
liveui: Added Context.destory() method, which only calls "clean" invalidation functions liveui: Model.get's invalidation function is now a "clean" invalidation function liveui: Added the concept of render Context identifiers, which can be used to ensure that certain Context's are automatically cleaned up without being invalidated. This is used by the renderTo() function, which allows cleanup invalidation functions to be called when a template is rendered on the same DOM element.
Filename is now passed as an option to filters; this allows Stylus to properly resolve paths when @import is used within a :stylus block.
Fixed uglify-js dependency in package.json for now (partially addresses #111)
Parser is more forgiving on foreach statements (fixes #109) Updated test suite
Fix coffeescript filter
to eliminate error "Compile error: str is not defined"
Added some code to `runtime.loadTemplate` to allow for early detection of load errors in some cases on some browsers Push to 3.0.0alpha6
…rly resolved (fixes #97) Push to 3.0.0alpha5
Fixed a bug in test suite (incorrect count of tests passed) Added additional tests Push to 3.0.0alpha4
Push to 3.0.0alpha3
Fixed a few bugs in Meteor smart package Documented isolates
runtime: Moved 'blade.runtime' to 'blade.Runtime' (but kept blade.runtime for backward compatibility) runtime: Moved 'blade.timeout' to 'blade.Runtime.options.loadTimeout' runtime: Moved 'blade.mount' to 'blade.Runtime.options.mount' runtime: Moved 'blade.cb' to 'blade._cb' runtime: Moved 'blade.cachedViews' to 'blade._cachedViews' Added isolate block (still undocumented) Added constant block (still undocumented) Added foreach block Compiler now quotes attribute properties properly (fixes #94) blade.LiveUpdate is a [Spark-compatible](https://github.com/meteor/meteor/tree/master/packages/spark) interface containing all Spark annotation types, as specified by the Spark API. Blade chunks are now deprecated Removed weird spacing from LICENSE; license is MIT license Fixed a bug in runtime.capture, where blocks defined within a function were deleted completely, not inserted/resolved Fixed a bug in the test suite when performing diff Fixed bugs in Meteor runtime: needs to append .blade to filenames, as appropriate; needs to return boolean (might fix #95) Package.json spaces converted to tabs
…ed in 2.6.3 (fixes #92) Push to 2.6.4