Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

add links for deprecated docs #670

Merged
merged 3 commits into from
Apr 2, 2019
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions docs/context.md
Original file line number Diff line number Diff line change
@@ -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
Expand Down
2 changes: 2 additions & 0 deletions docs/expressions/helper.md
Original file line number Diff line number Diff line change
@@ -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
Expand Down
2 changes: 2 additions & 0 deletions docs/helpers/each.md
Original file line number Diff line number Diff line change
@@ -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`
Expand Down
2 changes: 2 additions & 0 deletions docs/helpers/is.md
Original file line number Diff line number Diff line change
@@ -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.
Expand Down
2 changes: 1 addition & 1 deletion docs/helpers/registerHelper.md
Original file line number Diff line number Diff line change
Expand Up @@ -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)`

Expand Down
2 changes: 2 additions & 0 deletions docs/helpers/unless.md
Original file line number Diff line number Diff line change
@@ -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`
Expand Down
2 changes: 2 additions & 0 deletions docs/helpers/with.md
Original file line number Diff line number Diff line change
@@ -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}}`
Expand Down
2 changes: 2 additions & 0 deletions docs/keys/scope.vars.md
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand Down
2 changes: 1 addition & 1 deletion docs/registerConverter.md
Original file line number Diff line number Diff line change
Expand Up @@ -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)`
Expand Down
2 changes: 2 additions & 0 deletions docs/registerPartial.md
Original file line number Diff line number Diff line change
Expand Up @@ -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}}`.
Expand Down
2 changes: 2 additions & 0 deletions docs/tags/partial.md
Original file line number Diff line number Diff line change
@@ -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]}}`
Expand Down