rust-coal icon indicating copy to clipboard operation
rust-coal copied to clipboard

Feature Requests: RFC

Open camsjams opened this issue 4 years ago • 4 comments

Some ideas:

  • Docker build script 🐋
  • Custom reusable components (Like React or Vue) ⚛️
  • Uglification of JS 🧟
  • Option to produce external files for CSS and JS 🎁

camsjams avatar Dec 09 '20 07:12 camsjams

+1 for "reusable components", or, as I would call them, sub-layouts.

albx79 avatar Dec 13 '20 08:12 albx79

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

camsjams avatar Dec 15 '20 23:12 camsjams

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.

albx79 avatar Dec 16 '20 08:12 albx79

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).

albx79 avatar Jan 19 '22 16:01 albx79