This repository has been archived by the owner on May 3, 2019. It is now read-only.
Releases: x1unix/karkas
Releases · x1unix/karkas
Karkas 4.1.0
API
- Add
compile
method toView
- Add
view
method toKarkas
to create unregistered templates
DOM
- Add
data-k-on-compile
hook - Make
data-view
optional (element'sinnerHTML
will be used as source if attribute is undefined)
Fixes
- Allow usage of multiple pipes on the same expression
Etc
- Cover compiler with unit tests
Karkas 4.0.0
Changelog
- Migrate to
TypeScript
fromES5
- Add TypeScript definitions
- Disable usage of template name as filter name (use
template
filter instead) - Autodetect environment (browser or node) on module require
- Update docs
Karkas 3.0.0
Changelog
- Migrate to CommonJS module system
- Divide library to compiler and DOM features
- Allow usage on NodeJS (compiler only)
- Refactor components API
- Deprecated compile-to-element feature
karkas.View
now receive only text as template contentkarkas.import
now imports content to single template.- Added npm package
- Performance improvements
Migration
This version is not compatible with old v2.x release.
Karkas 2.4.7
Changelog
karkas.View
now can use alsoString
in viewElement as template source.- Fixed type error bug in
karkas.refresh()
when elements list was null. - Template URL can be imported using callback (optional to Promise)
- Template renderer refactoring
- Filter arguments parser refactoring
- Native legacy browsers support (IE 9)
- Added
array
filter.
Karkas 2.4.4
Changelog
- Refactoring of expression parser
- Added logical expressions parser
parseAsObject
is deprecated.
Karkas 2.4.3
Changelog
- Added template cache
- Added template autoremove from DOM (optional)
- Added more configuration parameters
- Rename
findAll
method torefresh
- Add hard and soft refresh of templates list
- Do not refresh already loaded templates (soft refresh)
- Move
karkasView
class tokarkas.View
- Autorun Karkas only after
DOMContentLoad
event - Code refactoring
Karkas 2.4.2
Changelog
- Fixed strings parsing issue
Karkas 2.4.1
Changelog
- Changed filters parsing engine
- Improved error processing
- Added
string
andmath
filters
Karkas 2.4.0
Changelog
- Added value filters
- Added feature of embedded templates inside another
- Removed support of deprecated
template
tag - Added
autorun
parameter to Karkas config - Bugfixes and code optimization
Karkas 2.1.7
Changelog
- Configurable output of undefined object properties
- Undefined properties can be replaced by empty string