docs: private void parseTemplate() throws MiniTemplator.TemplateSyntaxException {
          initParsing();
          beginMainBlock();
          parseTemplateCommands();
          endMainBlock();
          checkBlockDefinitionsComplete();
          if (condLevel != -1) {
              throw new MiniTemplator.TemplateSyntaxException("$if without matching $endIf.");
          }
          parseTemplateVariables();
          associateVariablesWithBlocks();
          terminateParsing();
      }