| Inherits from | GRMustacheTemplateLoader |
| Declared in | GBDictionaryTemplateLoader.h<br />GBDictionaryTemplateLoader.m |
Encapsulates template loading with partials provided through a dictionary.
This is almost straight from GRMustache example, with just a bit of cleanup and garbage collector modifications. Although the functionality could easily be implemented by GBTemplateHandler , it was moved to a separate class to better encapsulate GRMustache logic and prevent bloating public interface of GBTemplateHandler with all specifics of GRMustacheTemplateLoader that are not needed for creating output.
+ loaderWithDictionary:
Returns a new autoreleased GBDictionaryTemplateLoader instance.
- initWithDictionary:
Initializes the template loader with the given dictionary of partials.
Returns a new autoreleased GBDictionaryTemplateLoader instance.
+ (id)loaderWithDictionary:(NSDictionary *)partials Returns a new autoreleased GBDictionaryTemplateLoader instance.
GBDictionaryTemplateLoader.hGBDictionaryTemplateLoader.mInitializes the template loader with the given dictionary of partials.
- (id)initWithDictionary:(NSDictionary *)partialsReturns initialized instance.
Initializes the template loader with the given dictionary of partials.
GBDictionaryTemplateLoader.hGBDictionaryTemplateLoader.m