romancow / dimdom

A small, simple way to represent a DOM - a “diminished DOM”
MIT License
0 stars 0 forks source link

Separate file prepend module #12

Open romancow opened 8 years ago

romancow commented 8 years ago

For most recent release, the single source file was finally separated into multiple source files. I wanted a really simple way to combine them that I had control over, rather than using a more "comprehensive" solution like browserify or webpack. So I inserted my own "cake-prepend" commands that would be parsed in the cakefile when the project is built, similar to what I've seen CodeKit and Prepos do.

It would be nice to move this processing into it's own module for ease of reuse (and for other to use). It could support both prepend and append commands, with a customizable prefix so it could actually support the CodeKit and Prepos commands.

romancow commented 8 years ago

Will need to support multiple types of comments, e.g. //, /* */, # (coffeescript)

Also, maybe a way to add custom comment characters.