Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Changed muti-line comment style.

  • Loading branch information...
commit 95a80415cb7f53918b382c69950a42f497edead7 1 parent dfbced9
@5thWall authored
Showing with 17 additions and 13 deletions.
  1. +17 −13 tasks/mustache_render.js
View
30 tasks/mustache_render.js
@@ -1,4 +1,4 @@
-/*
+/**
* grunt-mustache-render
* https://github.com/5thWall/mustache-render
*
@@ -19,22 +19,26 @@ module.exports = function gruntTask(grunt) {
clear_cache : false
};
- // Public: Create Object for rendering templates
- //
- // options - The Object options used to configure the renderer
- // directory - The String base directory to look for partials (default: "")
- // extension - The String extension for partials templates (default: ".mustache")
- // prefix - The String common prefix for partials (default: "")
+ /**
+ * Public: Create Object for rendering templates
+ *
+ * options - The Object options used to configure the renderer
+ * directory - The String base directory to look for partials (default: "")
+ * extension - The String extension for partials templates (default: ".mustache")
+ * prefix - The String common prefix for partials (default: "")
+ */
function GMR(options) {
this.options = options(DEFAULT_OPTIONS);
}
- // Public: Render a template with the given data to the given destination
- //
- // template - The String path to the template to be rendered
- // data - The String path to a JSON or YAML file
- // The data Object
- // dest - The String path to write the rendered template
+ /**
+ * Public: Render a template with the given data to the given destination
+ *
+ * template - The String path to the template to be rendered
+ * data - The String path to a JSON or YAML file
+ * The data Object
+ * dest - The String path to write the rendered template
+ */
GMR.prototype.render = function render(data, template, dest) {
var renderFn = this._compileTemplate(template);
data = this._getData(data);
Please sign in to comment.
Something went wrong with that request. Please try again.