summaryrefslogtreecommitdiffstats
path: root/lib/templating/replaceShortcuts.js
diff options
context:
space:
mode:
Diffstat (limited to 'lib/templating/replaceShortcuts.js')
-rw-r--r--lib/templating/replaceShortcuts.js26
1 files changed, 13 insertions, 13 deletions
diff --git a/lib/templating/replaceShortcuts.js b/lib/templating/replaceShortcuts.js
index acdd1b9..1cfdbf0 100644
--- a/lib/templating/replaceShortcuts.js
+++ b/lib/templating/replaceShortcuts.js
@@ -1,12 +1,12 @@
var escapeStringRegexp = require('escape-string-regexp');
var listShortcuts = require('./listShortcuts');
-/*
- Apply a shortcut of block to a template
- @param {String} content
- @param {Shortcut} shortcut
- @return {String}
-*/
+/**
+ * Apply a shortcut of block to a template
+ * @param {String} content
+ * @param {Shortcut} shortcut
+ * @return {String}
+ */
function applyShortcut(content, shortcut) {
var start = shortcut.getStart();
var end = shortcut.getEnd();
@@ -24,13 +24,13 @@ function applyShortcut(content, shortcut) {
}
/**
- Replace shortcuts from blocks in a string
-
- @param {List<TemplateBlock>} engine
- @param {String} filePath
- @param {String} content
- @return {String}
-*/
+ * Replace shortcuts from blocks in a string
+ *
+ * @param {List<TemplateBlock>} engine
+ * @param {String} filePath
+ * @param {String} content
+ * @return {String}
+ */
function replaceShortcuts(blocks, filePath, content) {
var shortcuts = listShortcuts(blocks, filePath);
return shortcuts.reduce(applyShortcut, content);