Closed Abdillah closed 7 years ago
import Monkberry from 'monkberry';
import Template from 'template.monk';
import directives from 'monkberry-directives';
const view = Monkberry.render(Template, document.body, {directives});
I'm sorry, yeah, that's the case! Thank you..
Just curious, is there currently other way to include directives from .monk
or class directly?
I think no.
Okay, thaks
Hi @antonmedv , I love this library as it does what it should!
But, I have a question. I have a setup where
monkberry
used with browserify. It compiles allmonk
files and include it elsewhere. The think is, I have no way (in my knowledge) to specify directive to use.Can I put what directives to use directly in my
*.monk
file?Or in my class which extend the generated Template class?
Which both happen to do nothing..
Am I make mistake?