Created
October 11, 2016 09:40
-
-
Save allmarkedup/0e1e98c635fa6e0d2b4852c08b922960 to your computer and use it in GitHub Desktop.
Fractal + Twig
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
'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); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"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