Top | ![]() |
![]() |
![]() |
![]() |
TmplTemplateLocator * | tmpl_template_locator_new () |
void | tmpl_template_locator_append_search_path () |
void | tmpl_template_locator_prepend_search_path () |
GInputStream * | tmpl_template_locator_locate () |
gchar ** | tmpl_template_locator_get_search_path () |
void tmpl_template_locator_append_search_path (TmplTemplateLocator *self
,const gchar *path
);
void tmpl_template_locator_prepend_search_path (TmplTemplateLocator *self
,const gchar *path
);
GInputStream * tmpl_template_locator_locate (TmplTemplateLocator *self
,const gchar *path
,GError **error
);
This will resolve the relative path using the search paths found within the template loader.
gchar **
tmpl_template_locator_get_search_path (TmplTemplateLocator *self
);
Gets the current search path used by the template locator.
struct TmplTemplateLocatorClass { GObjectClass parent_instance; GInputStream *(*locate) (TmplTemplateLocator *self, const gchar *path, GError **error); };
typedef struct _TmplTemplateLocator TmplTemplateLocator;
The TmplTemplateLoader class is used to specify how templates
should be loaded. This can be used directly by your code that
will compile the data streams into TmplTemplate instances, or
by a TmplTemplate that is resolving includes from the
{{include "path.tmpl"}}
directive.
See “locator” for more information.