Hi. There is a discussion about angular2 syntax support in Slim: #683
In current version full support is impossible due to default splats attributes syntax. So I changed parser behavior a bit and moved splat attributes regexp to an option with new default value, not conflicting with Angular2 *ng... syntax. Also attr delimeters set to curly braces only.
Thx for the suggestion!
I won't accept a breaking change since we can just handle that with configuration. Could you add an option splat_prefix => '*' which is then used by the regex? Then you could add a section to the readme about angular support, where you describe the required configuration.
Thx for reply!
I reverted default options to their original values and added description in readme.
Looks like there is no breaking changes now.
Sorry for long delay.
Now I'm trying to fix broken tests and noticed, that master branch failed with the same errors, so I suppose problem is not in my patch.
Broken spec is:
NameError: undefined local variable or method `xml' for #<Env:0x00000001d762b0 @var="instance", @x=0>
(__TEMPLATE__):3:in `block in singleton class'
(__TEMPLATE__):-2:in `singleton class'
It's also impossible for me to create new entry in changelog, because I don't know what new gem version will be.
Added splat_prefix configuration option for Angular2 syntax support
I've done with splat_prefix option and test coverage for it. README is also improved.
Also made rebase for the sake of clear commit history.
Looks good! Thank you! I think I can merge this as it is.
Possible solution for Angular2 syntax support in JP