Skip to content
This repository has been archived by the owner on Jul 22, 2020. It is now read-only.

Commit

Permalink
Fix render extension output being escaped
Browse files Browse the repository at this point in the history
Resolves #11
  • Loading branch information
LeBenLeBen committed Apr 24, 2019
1 parent 462c075 commit fc50f5f
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/extensions/render.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
'use strict';

const nunjucks = require('nunjucks');
const utils = require('@frctl/fractal').utils;

module.exports = function(fractal){
Expand Down Expand Up @@ -41,7 +42,7 @@ module.exports = function(fractal){
let env = JSON.parse(JSON.stringify(rootContext._env));
context._env = env;
entity.render(context).then(html => {
callback(null, html);
callback(null, new nunjucks.runtime.SafeString(html));
}).catch(err => {
callback(err);
});
Expand Down

0 comments on commit fc50f5f

Please sign in to comment.