diff --git a/docs/context.md b/docs/context.md index 224cea22..846ea4ef 100644 --- a/docs/context.md +++ b/docs/context.md @@ -1,6 +1,8 @@ @page can-stache.scopeAndContext Legacy Scope Behavior @parent can-stache/deprecated +@deprecated {4.15.0} Use [can-stache.helpers.let] and [can-stache.helpers.for-of] instead to refer to things up in the scope. + @body Every part of a stache template is rendered with a diff --git a/docs/expressions/helper.md b/docs/expressions/helper.md index 9a932acb..f16ba8f0 100644 --- a/docs/expressions/helper.md +++ b/docs/expressions/helper.md @@ -1,6 +1,8 @@ @typedef {String} can-stache/expressions/helper Helper Expression @parent can-stache/deprecated +@deprecated {4.15.0} Use [can-stache.expression.call] instead. + @signature `method [EXPRESSION...]` Calls `method` with zero or many arguments where each argument diff --git a/docs/helpers/each.md b/docs/helpers/each.md index 301135c0..e578b18e 100644 --- a/docs/helpers/each.md +++ b/docs/helpers/each.md @@ -1,6 +1,8 @@ @function can-stache.helpers.each {{#each(expression)}} @parent can-stache/deprecated +@deprecated {4.15.0} Use [can-stache.helpers.for-of] instead. + @signature `{{#each(EXPRESSION)}}FN{{else}}INVERSE{{/each}}` Render `FN` for each item in `EXPRESSION`’s return value. If `EXPRESSION` diff --git a/docs/helpers/is.md b/docs/helpers/is.md index 6b8f3d6e..64d76b00 100644 --- a/docs/helpers/is.md +++ b/docs/helpers/is.md @@ -1,6 +1,8 @@ @function can-stache.helpers.is {{#is(expressions)}} @parent can-stache/deprecated +@deprecated {4.15.0} Use [can-stache.helpers.if] instead. + @signature `{{#is([EXPRESSION...])}}FN{{else}}INVERSE{{/is}}` Render FN if two values are equal, otherwise render INVERSE. diff --git a/docs/helpers/registerHelper.md b/docs/helpers/registerHelper.md index 3b38071e..dc6f4aed 100644 --- a/docs/helpers/registerHelper.md +++ b/docs/helpers/registerHelper.md @@ -2,7 +2,7 @@ @description Register a helper. @parent can-stache/deprecated -@deprecated {4.0} Use [can-stache.addLiveHelper] instead. +@deprecated {4.15.0} Use [can-stache.addLiveHelper] instead. @signature `stache.registerHelper(name, helper)` diff --git a/docs/helpers/unless.md b/docs/helpers/unless.md index 4924d61d..bd0e59bb 100644 --- a/docs/helpers/unless.md +++ b/docs/helpers/unless.md @@ -1,6 +1,8 @@ @function can-stache.helpers.unless {{#unless(expression)}} @parent can-stache/deprecated +@deprecated {4.15.0} Use [can-stache.helpers.if] instead. + @signature `{{#unless(EXPRESSION)}}FN{{else}}INVERSE{{/unless}}` Renders `FN` if `EXPRESSION` is falsey or `INVERSE` if `EXPRESSION` diff --git a/docs/helpers/with.md b/docs/helpers/with.md index f88fefa5..d484c1d7 100644 --- a/docs/helpers/with.md +++ b/docs/helpers/with.md @@ -1,6 +1,8 @@ @function can-stache.helpers.with {{#with(expression)}} @parent can-stache/deprecated +@deprecated {4.15.0} Use [can-stache.helpers.let] instead. + Changes the context within a block. @signature `{{#with(EXPRESSION)}}BLOCK{{/with}}` diff --git a/docs/keys/scope.vars.md b/docs/keys/scope.vars.md index 5114ab74..1fc4da7e 100644 --- a/docs/keys/scope.vars.md +++ b/docs/keys/scope.vars.md @@ -2,6 +2,8 @@ @parent can-stache/deprecated @description Used to reference variables specific to the template context +@deprecated {4.15.0} Use `{{ let }}` [can-stache.helpers.let] instead. + @signature `scope.vars` A placeholder for a value that is local to the template. diff --git a/docs/registerConverter.md b/docs/registerConverter.md index e60a4980..dce26305 100644 --- a/docs/registerConverter.md +++ b/docs/registerConverter.md @@ -2,7 +2,7 @@ @description Register a helper for bidirectional value conversion. @parent can-stache/deprecated -@deprecated {4.0} Use [can-stache.addConverter] instead. It will always be passed +@deprecated {4.15.0} Use [can-stache.addConverter] instead. It will always be passed observables, removing the need for the user to pass values with `~`. @signature `stache.registerConverter(converterName, getterSetter)` diff --git a/docs/registerPartial.md b/docs/registerPartial.md index 1c23bad7..79412f28 100644 --- a/docs/registerPartial.md +++ b/docs/registerPartial.md @@ -2,6 +2,8 @@ @description Register a partial template that can be rendered with [can-stache.tags.partial]. @parent can-stache/deprecated +@deprecated {4.0} Use ViewModel functions instead. + @signature `stache.registerPartial(name, template)` Registers a template so it can be rendered with `{{>name}}`. diff --git a/docs/tags/partial.md b/docs/tags/partial.md index 9fc760ec..72864a59 100644 --- a/docs/tags/partial.md +++ b/docs/tags/partial.md @@ -1,6 +1,8 @@ @function can-stache.tags.partial {{>key}} @parent can-stache/deprecated +@deprecated {4.15} Pass renderer functions through the ViewModel instead. See the “Calling views” section in the [can-stache#BasicUse can-stache docs] for an example. + Render another template within the current template. @signature `{{>key [EXPRESSION]}}`