rust-coal
rust-coal copied to clipboard
Feature Requests: RFC
Some ideas:
- Docker build script 🐋
- Custom reusable components (Like React or Vue) ⚛️
- Uglification of JS 🧟
- Option to produce external files for CSS and JS 🎁
+1 for "reusable components", or, as I would call them, sub-layouts.
Thanks @albx79 yea I have a prototype for these (sub layouts), was trying to figure out the features.
Probably would be:
- Unique HTML
- Possibly some form of parameters (like
props
in React) - Self-contained CSS
- Self-contained JS
I imagine you could try and reuse the layout machinery you already have, except that instead of hardcoding the behaviour of "title", "meta", and "style", these should become properties defined by the sub-layout (or component).
Maybe there will be a need to introduce namespaces, otherwise it will get more and more difficult to find unique names for layouts, sublayouts, and properties.
One more idea: have you considered supporting Markdown and/or Asciidoc? It shouldn't be too hard to add (I've experimented with a rust md-to-html converter and it's pretty easy).