Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVASCRIPT

eleventy stringify

const util = require('util');

module.exports = function(eleventyConfig) {

	eleventyConfig.addFilter('console', function(value) {
		return util.inspect(value);
	});

}

// {{ post | console }}
 
PREVIOUS NEXT
Tagged: #eleventy #stringify
ADD COMMENT
Topic
Name
9+1 =