UNPKG

383 BJavaScriptView Raw
1'use strict';
2
3var base = require('./base-normalizer');
4
5/**
6 * Register async template helpers at the given filepath.
7 *
8 * ```sh
9 * $ --helpers="./foo.js"
10 * ```
11 * @name helpers
12 * @api public
13 * @cli public
14 */
15
16module.exports = function(app) {
17 var field = base(app);
18
19 return function(val, key, config, schema) {
20 return field.normalize(val, key, config, schema);
21 };
22};