Skip to content

Instantly share code, notes, and snippets.

@allmarkedup
Created October 11, 2016 09:40
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save allmarkedup/0e1e98c635fa6e0d2b4852c08b922960 to your computer and use it in GitHub Desktop.
Save allmarkedup/0e1e98c635fa6e0d2b4852c08b922960 to your computer and use it in GitHub Desktop.
Fractal + Twig
'use strict';
const twig = require('@frctl/twig');
const fractal = module.exports = require('@frctl/fractal').create();
fractal.set('project.title', 'Twig + Fractal');
/*
* Components
*/
fractal.components.set('path', `${__dirname}/components`);
fractal.components.set('ext', '.twig');
fractal.components.engine(twig({
importContext: true
}));
/*
* Web UI
*/
fractal.web.set('static.path', `${__dirname}/public/assets`);
const theme = require('@frctl/mandelbrot')();
fractal.web.theme(theme);
{
"name": "fractal-twig",
"version": "0.1.0",
"dependencies": {
"@frctl/fractal": "^1.1.0-beta.1",
"@frctl/mandelbrot": "^1.1.0-alpha.0",
"@frctl/twig": "^1.0.0-beta.1"
},
"devDependencies": {
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment