Hi, we currently use a tool called Fractal at work. It essentially allows you to write reusable components with HTML/CSS and has a build process that allows for easy embedding and previewing. So for example, I could build a little “+ Create Topic” button and put it inside of a “Create a new Topic” form.
This tool is not under active development, has a lot of node module dependancies. It is basically a static site generator with a few bells and whistles.
How might I accomplish a similar development and user experience using hugo? Generating a documentation site from well organized SCSS files and HTML templates. And being able to reuse them inside each other.
Thanks! This worked great for a bit but now I am getting this funny error when running hugo server (give it a go)
~/code/mauxy on master*
↪ hugo server
Total in 1 ms
Error: Error building site: "/Users/nnichols/code/mauxy/data/scss/button.scss:1:1": unmarshal of format "" is not supported
~/code/mauxy on master*
↪
I have done some googleing and did not see any Icon? files on my mac.
What the heck is format ""? I think the directoryindex shortcode is causing this when reading the scss directory
After researching this, looks like that error may happen when reading a file in the data dir (which is a reserved dir for data files). So first try saving your code snippets under a new dir name (outside of data dir).