Closed kikonen closed 6 years ago
Please follow things described in https://github.com/k0kubun/hamlit#reporting-an-issue when you report an issue, or just create a reproductive repository if you're not sure how to report issues. Otherwise people who receive your issue report can't reproduce issues correctly and so can't help you.
I tried to prepare the reproductive environment for you https://github.com/k0kubun/misc/tree/hamlit-include, and include_file
directive worked fine and at least it wasn't broken with the information you provided. What you did or something you didn't report should be wrong.
At least this should not be an issue inside Hamlit, so let me close this.
In addition to that, hamlit.gem does not intend to provide Haml parsing interface and the class you used Hamlit::HamlParser::ParserNode
is internal interface which is not intended to be directly used, until we make a separated Haml parser gem which is shared among Haml and Hamlit. You're free to use it, but it's out of support for now and please help you on your own if you want hack on internal interface.
I tried to create "include" filter to allow utilizing splitting files into more manageable chunks, but avoid overhead of calling partial 1000+ times.
I tried following kind of structure
However, it fails to work. Fails with first local variable defined inside include filed
Example, this fails _included_file.haml
Q: Is it possible to make such structure work, or is this effort futile?