UNPKG

@pattern-lab/core

Version:

Create atomic design systems with Pattern Lab. This is the core API and orchestrator of the ecosystem.

15 lines (12 loc) 330 B
'use strict'; const logger = require('./log'); module.exports = function (pattern, data, partials) { logger.debug( `render: ${ pattern.patternPartial !== '-.' ? pattern.patternPartial : 'ad hoc partial with template' + pattern.extendedTemplate }` ); return pattern.render(data, partials); };