summaryrefslogtreecommitdiff
path: root/specs/~dynamic-names.yml
diff options
context:
space:
mode:
Diffstat (limited to 'specs/~dynamic-names.yml')
-rw-r--r--specs/~dynamic-names.yml19
1 files changed, 0 insertions, 19 deletions
diff --git a/specs/~dynamic-names.yml b/specs/~dynamic-names.yml
index 062fbcd..a9bf913 100644
--- a/specs/~dynamic-names.yml
+++ b/specs/~dynamic-names.yml
@@ -12,25 +12,6 @@ overview: |
resolution produces the same value as an Interpolation tag and does not affect
the context for further processing.
- This tag's content refers to a key in the context whose value will be used in
- place of the Dynamic Name itself as content of the tag. The name resolution is
- identical to name resolution in Interpolation tags, as follows:
- 1) Split the name on periods; the first part is the name to resolve, any
- remaining parts should be retained.
- 2) Walk the context stack from top to bottom, finding the first context
- that is a) a hash containing the name as a key OR b) an object responding
- to a method with the given name.
- 3) If the context is a hash, the data is the value associated with the
- name.
- 4) If the context is an object, the data is the value returned by the
- method with the given name.
- 5) If any name parts were retained in step 1, each should be resolved
- against a context stack containing only the result from the former
- resolution. If any part fails resolution, the result should be considered
- falsey, and should interpolate as the empty string.
- The resolved data should be coerced into a string before being used as
- content.
-
Set Delimiter tags MUST NOT affect the resolution of a Dynamic Name. The
Dynamic Names MUST be resolved against the context stack local to the tag.
Failed resolution of the dynamic name should result in nothing being rendered.