~ubuntu-branches/ubuntu/trusty/grantlee/trusty

« back to all changes in this revision

Viewing changes to templates/lib/engine.h

  • Committer: Bazaar Package Importer
  • Author(s): Scott Kitterman
  • Date: 2010-12-07 09:19:01 UTC
  • Revision ID: james.westby@ubuntu.com-20101207091901-hsfsvnkxdshv4k8g
Tags: 0.1.7-0ubuntu3
Revert previous upload and try again with the correct patch

Show diffs side-by-side

added added

removed removed

Lines of Context:
21
21
#ifndef GRANTLEE_ENGINE_H
22
22
#define GRANTLEE_ENGINE_H
23
23
 
24
 
#include "mutabletemplate.h"
25
24
#include "template.h"
26
25
#include "templateloader.h"
27
26
 
36
35
/**
37
36
  @brief Grantlee::Engine is the main entry point for creating %Grantlee Templates.
38
37
 
39
 
  The Grantlee::Engine is responsible for configuring and creating Template and MutableTemplate objects.
 
38
  The Grantlee::Engine is responsible for configuring and creating Template objects.
40
39
  In typical use, one or more TemplateLoader objects will be added to the Engine to load template objects, and
41
40
  plugin directories will be set to enable finding template tags and filters.
42
41
 
105
104
  void addPluginPath( const QString &dir );
106
105
 
107
106
  /**
108
 
    Removes all instances of @p dir from the list of plugin dirs.
109
 
  */
110
 
  void removePluginPath( const QString &dir );
111
 
 
112
 
  /**
113
107
    Returns the currently configured plugin dirs
114
108
  */
115
109
  QStringList pluginPaths() const;
141
135
  Template newTemplate( const QString &content, const QString &name ) const;
142
136
 
143
137
  /**
144
 
    Load the MutableTemplate identified by @p name.
145
 
 
146
 
    The Templates and plugins loaded and will be determined by the Engine configuration.
147
 
  */
148
 
  MutableTemplate loadMutableByName( const QString &name ) const;
149
 
 
150
 
  /**
151
 
    Create a new MutableTemplate with the content @p content identified by @p name.
152
 
 
153
 
    The secondary Templates and plugins loaded will be determined by the Engine configuration.
154
 
  */
155
 
  MutableTemplate newMutableTemplate( const QString &content, const QString &name ) const;
156
 
 
157
 
  /**
158
138
    Returns the libraries available by default to new Templates.
159
139
  */
160
140
  QStringList defaultLibraries() const;