Skip to content

Instantly share code, notes, and snippets.

@lennyburdette
Created June 21, 2018 23:28
Show Gist options
  • Save lennyburdette/16ee3402b7135d37a1b4d37857f51f6d to your computer and use it in GitHub Desktop.
Save lennyburdette/16ee3402b7135d37a1b4d37857f51f6d to your computer and use it in GitHub Desktop.
module.exports = function({ source }, { parse, visit }) {
const ast = parse(source);
return visit(ast, env => {
let { builders: b } = env.syntax;
return {
MustacheStatement() {
return b.mustache(b.path('wat-wat'));
},
};
});
};
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment