Include imports in generated HTML, make Method a typed entry

R= @jmesserly