AndBM / helichrysum

http://abmichelsen.com/helichrysum/
GNU General Public License v3.0
0 stars 1 forks source link

Port JS to Ruby Plugin #11

Open alexrutar opened 2 years ago

alexrutar commented 2 years ago

Long term, it would be pretty cool to not have to use the JS to render at all, and instead render the entire site compile-time from data specified in _config.yml.

This is a lot of work since it requires rewriting the entire oath parser module in Ruby.

alexrutar commented 2 years ago

One hacky workaround would be to call the JS from within the ruby plugin. But this is really fragile, and currently it just makes more sense to use the JS to render everything.

One of the reasons it makes more sense to use templating directly is that constructing tags in the DOM, while possible in JS, is relatively unnatural. With a good plugin setup, a lot more of the page contents would actually be visible in the HTML, rather than just filling placeholders.