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

Commit

Permalink
Fix view 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 fc50f5f commit c455170
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/extensions/view.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
'use strict';

const nunjucks = require('nunjucks');

module.exports = function(fractal){

function ViewExtension() {
Expand Down Expand Up @@ -27,7 +29,7 @@ module.exports = function(fractal){
entity = entity.variants().default();
}
entity.getContent().then(content => {
callback(null, content);
callback(null, new nunjucks.runtime.SafeString(content));
}).catch(err => {
callback(err);
});
Expand Down

0 comments on commit c455170

Please sign in to comment.