Permalink
Browse files

Guides WIP

  • Loading branch information...
1 parent e19e8a7 commit dcad1831ae64e684f41cd13a86c32cafeafa2ec2 @groue committed Feb 20, 2013
Showing with 3 additions and 6 deletions.
  1. +1 −1 Guides/delegate.md
  2. +0 −3 Guides/forking.md
  3. +1 −1 Guides/protected_contexts.md
  4. +1 −1 Guides/runtime_patterns.md
View
2 Guides/delegate.md
@@ -61,7 +61,7 @@ Also: if a section tag `{{# name }}...{{/}}` is provided with an array, its cont
In order to observe the rendering of all tags rendered by a template, you have your tag delegate enter the *base context* of the template.
-The base context contains values and tag delegates that are always available for the template rendering. It contains all the ready for use filters of the [filter library](filters.md), for example. Contexts are detailed in the [Rendering Objects](rendering_objects.md) and [Protected Contexts](protected_contexts) Guides.
+The base context contains values and tag delegates that are always available for the template rendering. It contains all the ready for use tools of the [standard library](standard_library.md), for example. Contexts are detailed in the [Rendering Objects](rendering_objects.md) and [Protected Contexts](protected_contexts) Guides.
```objc
@interface Document : NSObject<GRMustacheTagDelegate>
View
3 Guides/forking.md
@@ -91,9 +91,6 @@ The library features are described in the [guides](introduction.md). This sectio
- `<GRMustacheFilter>` (protocol)
- `GRMustacheFilter` (class)
- - `GRMustacheFilterLibrary`
-
- The *filter library* provides with built-in filters.
The library user can implement her own *filters*, that will add to the built-in ones.
View
2 Guides/protected_contexts.md
@@ -40,7 +40,7 @@ Protected objects
GRMustache addresses this concern by letting you store *protected objects* in the *base context* of a template.
-The base context contains [context stack values](runtime.md) and [tag delegates](delegate.md) that are always available for the template rendering. It contains all the ready for use filters of the [filter library](filters.md), for example. Context objects are detailed in the [Rendering Objects Guide](rendering_objects.md).
+The base context contains [context stack values](runtime.md) and [tag delegates](delegate.md) that are always available for the template rendering. It contains all the ready for use tools of the [standard library](standard_library.md), for example. Context objects are detailed in the [Rendering Objects Guide](rendering_objects.md).
You can derive a new context that contain protected objects with the `contextByAddingProtectedObject:` method:
View
2 Guides/runtime_patterns.md
@@ -155,7 +155,7 @@ self.template.baseContext = [self.template.baseContext contextByAddingProtectedO
[self.template renderObject:user2 error:NULL];
```
-The base context of a template provides keys that are always available for the template rendering. It contains all the ready for use filters of the [filter library](filters.md), for example, and now our `age` filter.
+The base context of a template provides keys that are always available for the template rendering. It contains all the ready for use tools of the [standard library](standard_library.md), for example, and now our `age` filter.
Here we have added the `age` filter as a *protected* object. This means that GRMustache will always resolve the `age` identifier to our filter. This makes our template future-proof: if the Pet class eventually gets an `age` property, the template will not suddenly resolve `age` as a number, which could not be used to compute the `age(birthDate)` expression.

0 comments on commit dcad183

Please sign in to comment.