Open fabricematrat opened 10 years ago
Thanks, @fabricematrat. I'll have a look at this soon. Hopefully @unscriptable can take a look, too, since he did a lot of the more recent work on the builder.
This is looking pretty good to me. I love that you separated out part of the parsing so it is testable. Any concerns, @unscriptable?
Hi,
To be able to support 'http://example.com' inside the template, cram should avoid to take it as a comment. The current behavior of cram will create an invalid file with 'http: and then the next line. I implemented a regexp which replace the string containing comments (// or /.../) by a temp variable and store it in an array. Then call the same logic of removing comment, then put back the original string.
BR, Fabrice.