Fixed the convention violations.
Changed the section/subsection treatment
Verified sphinx build.
Signed-off-by:James L Parry <jim_parry@bcit.ca>
diff --git a/user_guide_src/source/libraries/parser.rst b/user_guide_src/source/libraries/parser.rst
index 7c690ac..e7c7e3a 100644
--- a/user_guide_src/source/libraries/parser.rst
+++ b/user_guide_src/source/libraries/parser.rst
@@ -45,9 +45,12 @@
<div class="custom-index container"></div>
-**********************
+*******************************
+Using the Template Parser Class
+*******************************
+
Initializing the Class
-**********************
+======================
Like most other classes in CodeIgniter, the Parser class is initialized
in your controller using the $this->load->library function::
@@ -57,9 +60,8 @@
Once loaded, the Parser library object will be available using:
$this->parser
-*****************
Parsing templates
-*****************
+=================
You can use the ``parse()`` method to parse (or render) simple templates,
like this::
@@ -85,9 +87,8 @@
$string = $this->parser->parse('blog_template', $data, TRUE);
-**************
Variable Pairs
-**************
+==============
The above example code allows simple variables to be replaced. What if
you would like an entire block of variables to be repeated, with each
@@ -150,9 +151,8 @@
$this->parser->parse('blog_template', $data);
-***************************
-Template Parser Usage Notes
-***************************
+Usage Notes
+===========
If you include substitution parameters that are not referenced in your
template, they are ignored::
@@ -218,9 +218,8 @@
Result: Hello, John Doe (Mr Mr )
-**************
View Fragments
-**************
+==============
You do not have to use variable pairs to get the effect of iteration in
your views. It is possible to use a view fragment for what would be inside