Permalink
Browse files

fix(resolve): the resolving of the location template happens recursiv…

…ely, meaning that nested templates are supported
  • Loading branch information...
bas080
bas080 committed Jun 11, 2016
1 parent a99d49d commit a007685865befcd8e24487c3ee6a48d0c8ba6810
Showing with 6 additions and 0 deletions.
  1. +6 −0 src/view-manager.js
@@ -38,6 +38,7 @@ export class ViewManager {
*
* @param {string} template
* @param {object} data
*
* @returns {string}
*/
function render(template, data) {
@@ -50,5 +51,10 @@ function render(template, data) {
result = result.replace(regex, value);
}
/* performs the rendering of nested templates */
if (template !== result) {
result = render(result, data);
}
return result;
}

0 comments on commit a007685

Please sign in to comment.