javascript - How does Smart Admin include pages in to the Ajax version of the theme? -


i using smart admin theme ajax version in project, , cannot figure out how template data gets added theme.

  • there main index view ,
  • page sections stored inside ajax folder of theme

when click on menu link, loads section in div#content main body. application has different roles , each 1 has access different resources. same menu items. if user in role x, menu items either included or excluded.

my question's:

  1. how go achieving this?
  2. how template data using javascript?

    (are there libraries make easier , smart admin ship feature me template data?)