bminer / node-blade

Blade - HTML Template Compiler, inspired by Jade & Haml
Other
320 stars 28 forks source link

Including the same template multiple times may cause an error #116

Closed bminer closed 11 years ago

bminer commented 11 years ago

Including the same template multiple times may cause a Landmark conflict. At this time, there is no way for Blade to insert branch labels when including files, since the included file may need to modify a previously defined block.

bminer commented 11 years ago

This can be fixed. Files that don't create or modify blocks (which should be determined at compile-time) can be wrapped in a branch label. Otherwise, the files cannot be wrapped in branch labels and should also not allow preserve or constant blocks.