Skip to content

Commit

Permalink
[issue-#175-support-deno-doc] add doc block to views_path; add file m…
Browse files Browse the repository at this point in the history
…arkers
  • Loading branch information
crookse committed Apr 15, 2020
1 parent 21b5516 commit 606e7cd
Showing 1 changed file with 20 additions and 0 deletions.
20 changes: 20 additions & 0 deletions src/compilers/template_engine.ts
Expand Up @@ -2,12 +2,32 @@ const decoder = new TextDecoder();

export default class TemplateEngine {

/**
* @description
* A property to hold the base path to the template.
*
* @property string views_path
*/
public views_path: string = "";

// FILE MARKER: CONSTRUCTOR //////////////////////////////////////////////////

/**
* @description
* Construct an object of this class.
*
* @param number code
* The HTTP response code associated with this exception.
* @param string message
* (optional) The exception message.
*/

constructor(viewsPath: string) {
this.views_path = viewsPath;
}

// FILE MARKER: METHODS - PUBLIC /////////////////////////////////////////////

/**
* Render a template file and replace all template variables with the
* specified data.
Expand Down

0 comments on commit 606e7cd

Please sign in to comment.