Is it possible to render partials in static html5 pages
html, partial-views, render
Solution
I believe if you look at something like HTML Imports, this could solve your question. It caters for great flexibility and re-usability. You declare your partial import, simply by adding:
<link rel="import" href="/shared/menu.html">
to your html page.
Problem
Currently writing a static website for a collage project. I would like to render a sidebar as a partial. I know how to do this with Ruby on Rails but am unaware of how to set it up on a static page as we are only aloud the use of html5, css and javascript. Rendering a partial will improve working speed and keep clean code. If this is how it is rendered in the html with Ruby on Rails ``` <%= render "shared/menu" %> ``` What would my line look like without the rails system. Any help is very much appreciated.