Skip to content

Commit

Permalink
v1.0.14 release
Browse files Browse the repository at this point in the history
This update provides additional features and improvements for
{^{checkboxgroup}} and {^{radiogroup}} tags - together with
supporting documentation.

https://www.jsviews.com/#jsvcheckboxgrouptag@selector
https://www.jsviews.com/#jsvradiogrouptag@selector

See also advanced samples here:
https://www.jsviews.com/#samples/sort-filter@nested-group-tags

The update also brings improved domChangeEvent support. See the
documentation here:
https://www.jsviews.com/#tagoptions@domchange

It also includes some additional minor bug fixes and documentation
updates
  • Loading branch information
BorisMoore committed Apr 17, 2024
1 parent 2440b69 commit 6c9f443
Show file tree
Hide file tree
Showing 16 changed files with 4,267 additions and 47 deletions.
2 changes: 1 addition & 1 deletion MIT-LICENSE.txt
@@ -1,4 +1,4 @@
Copyright (c) 2020 Boris Moore https://github.com/BorisMoore/jsrender
Copyright (c) 2024 Boris Moore https://github.com/BorisMoore/jsrender

Permission is hereby granted, free of charge, to any person obtaining
a copy of this software and associated documentation files (the
Expand Down
8 changes: 4 additions & 4 deletions jsrender-node.js
@@ -1,11 +1,11 @@
/*! JsRender v1.0.13: http://jsviews.com/#jsrender */
/*! JsRender v1.0.14: http://jsviews.com/#jsrender */
/*! **VERSION FOR NODE.JS** (For WEB see http://jsviews.com/download/jsrender.js) */
/*
* Best-of-breed templating in browser or on Node.js.
* Does not require jQuery, or HTML DOM
* Integrates with JsViews (http://jsviews.com/#jsviews)
*
* Copyright 2023, Boris Moore
* Copyright 2024, Boris Moore
* Released under the MIT License.
*/

Expand All @@ -20,7 +20,7 @@ if (typeof exports !== 'object' ) {
//========================== Top-level vars ==========================

// global var is the this object, which is window when running in the usual browser environment
var versionNumber = "v1.0.13",
var versionNumber = "v1.0.14",
$, jsvStoreName, rTag, rTmplString, topView, $views,
_ocp = "_ocp", // Observable contextual parameter

Expand Down Expand Up @@ -405,7 +405,7 @@ function contextParameter(key, value, get) {
// Not a contextual parameter
// Set storeView to tag (if this is a tag.ctxPrm() call) or to root view ("data" view of linked template)
storeView = storeView.tagCtx || $isFunction(res)
? storeView // Is a tag, not a view, or is a computed contextual parameter, so scope to the callView, no the 'scope view'
? storeView // Is a tag, not a view, or is a computed contextual parameter, so scope to the callView, not the 'scope view'
: (storeView = storeView.scope || storeView,
!storeView.isTop && storeView.ctx.tag // If this view is in a tag, set storeView to the tag
|| storeView);
Expand Down
8 changes: 4 additions & 4 deletions jsrender.js
@@ -1,11 +1,11 @@
/*! JsRender v1.0.13: http://jsviews.com/#jsrender */
/*! JsRender v1.0.14: http://jsviews.com/#jsrender */
/*! **VERSION FOR WEB** (For NODE.JS see http://jsviews.com/download/jsrender-node.js) */
/*
* Best-of-breed templating in browser or on Node.js.
* Does not require jQuery, or HTML DOM
* Integrates with JsViews (http://jsviews.com/#jsviews)
*
* Copyright 2021, Boris Moore
* Copyright 2024, Boris Moore
* Released under the MIT License.
*/

Expand Down Expand Up @@ -44,7 +44,7 @@ var setGlobals = $ === false; // Only set globals if script block in browser (no

$ = $ && $.fn ? $ : global.jQuery; // $ is jQuery passed in by CommonJS loader (Browserify), or global jQuery.

var versionNumber = "v1.0.13",
var versionNumber = "v1.0.14",
jsvStoreName, rTag, rTmplString, topView, $views, $expando,
_ocp = "_ocp", // Observable contextual parameter

Expand Down Expand Up @@ -432,7 +432,7 @@ function contextParameter(key, value, get) {
// Not a contextual parameter
// Set storeView to tag (if this is a tag.ctxPrm() call) or to root view ("data" view of linked template)
storeView = storeView.tagCtx || $isFunction(res)
? storeView // Is a tag, not a view, or is a computed contextual parameter, so scope to the callView, no the 'scope view'
? storeView // Is a tag, not a view, or is a computed contextual parameter, so scope to the callView, not the 'scope view'
: (storeView = storeView.scope || storeView,
!storeView.isTop && storeView.ctx.tag // If this view is in a tag, set storeView to the tag
|| storeView);
Expand Down
4 changes: 2 additions & 2 deletions jsrender.min.js

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion jsrender.min.js.map

Large diffs are not rendered by default.

0 comments on commit 6c9f443

Please sign in to comment.