Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- // this is in the pattern library that gets imported as a node package
- 'use strict';
- const fractal = require('@frctl/fractal').create();
- fractal.components.set('path', `${__dirname}/patterns`);
- fractal.load().then(() => {
- const collection = fractal.components;
- for (let item of collection.flatten()) {
- item.render().then(html => {
- console.log(item.config.dir);
- // console.log(html);
- });
- }
- });
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement