gj-wes / template-compiler

Simple transformer to compile HTML components into single output file
0 stars 0 forks source link

Named components #2

Open gj-wes opened 1 month ago

gj-wes commented 1 month ago

Use components more like standard JS framework and replace the element currently used.

Would like to add a prefix, I'm thinking <em-. For example a bordered box container could then be <em-border-box>.

Think this would be clearer when using the components and would remove the need for the src attribute containing the component HTML path.

Additional Q here is how this would work with a nested folder structure.

gj-wes commented 1 month ago

Feature implemented in branch but now doubting if it's worth adding.

Could add complexity that the component element doesn't face and would need to rethink nested component folders.