Login Register

Includes - how to?

I am looking for a way to refactor some markup I have... essentially, the navbar on our site is used on 20+ html pages. I was curious if Dojo has some built-in widget for stamping this navbar on all pages. I was hoping for something like:

[html page]
#include "navbar"
[/html page]

[some js page]
"navbar"

[/some js page]

I've done some snooping, but am so new to Dojo, I'm having trouble finding what I need.

I appreciate any and all help to point me in the right direction!

Try

Try dijit.layout.ContentPane. You can set an href attribute on it to load an HTML file:
http://dojotoolkit.org/book/dojo-book-0-9/part-2-dijit/layout/content-pa...

one small point...

You might need to use dojox.layout.ContentPane if your navbar has scripts & so forth in it. The dijit.layout.ContentPane is the retarded cousin of the dojox version :)