summaryrefslogtreecommitdiffstats
path: root/user_guide_src/source/libraries/parser.rst
diff options
context:
space:
mode:
Diffstat (limited to 'user_guide_src/source/libraries/parser.rst')
-rw-r--r--user_guide_src/source/libraries/parser.rst24
1 files changed, 13 insertions, 11 deletions
diff --git a/user_guide_src/source/libraries/parser.rst b/user_guide_src/source/libraries/parser.rst
index 34ad65f2b..5af504a03 100644
--- a/user_guide_src/source/libraries/parser.rst
+++ b/user_guide_src/source/libraries/parser.rst
@@ -151,27 +151,29 @@ Class Reference
.. method:: parse($template, $data[, $return = FALSE])
- :param string $template: Path to view file
- :param array $data: Variable data
- :param bool $return: Whether to return the parsed template
- :returns: mixed
+ :param string $template: Path to view file
+ :param array $data: Variable data
+ :param bool $return: Whether to only return the parsed template
+ :returns: Parsed template string
+ :rtype: string
Parses a template from the provided path and variables.
.. method:: parse_string($template, $data[, $return = FALSE])
- :param string $template: Path to view file
- :param array $data: Variable data
- :param bool $return: Whether to return the parsed template
- :returns: mixed
+ :param string $template: Path to view file
+ :param array $data: Variable data
+ :param bool $return: Whether to only return the parsed template
+ :returns: Parsed template string
+ :rtype: string
This method works exactly like ``parse()``, only it accepts the template as a
string instead of loading a view file.
.. method:: set_delimiters([$l = '{'[, $r = '}']])
- :param string $l: Left delimiter
- :param string $r: Right delimiter
- :returns: void
+ :param string $l: Left delimiter
+ :param string $r: Right delimiter
+ :rtype: void
Sets the delimiters (opening and closing) for a value "tag" in a template. \ No newline at end of file