Open alexrutar opened 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.
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.