I am trying to use server-side rendering of riot.js to make a static HTML page that could be read by google spiders. I have a basic work example, but I'm trying to figure out how to dynamically load tags from different files when rendering on the server.
I understand that if you βrequireβ each tag file, it will work, but there must be a way to detect and find tags from the main tag file.
for example, given this tag stored in "home.tag":
<home>
<foo></foo>
<bar></bar>
</home>
when I require "home.tag", I would think that it would be better to include the files "foo.tag" and "bar.tag" automatically without the need to individually require each of them. Any help would be greatly appreciated!
source
share