Layout.staticPath (subdir)
render the path to the static directory of this layout object

  • Parameter String:
    name of subdirectory (optional)
Sourcecode in Layout/objectFunctions.js:
1:   function staticPath(subdir) {
2:      if (this.site)
3:         this.site.staticPath();
4:      else
5:         res.write(app.properties.staticPath);
6:      res.write("layouts/");
7:      res.write(this.alias);
8:      res.write("/");
9:      if (subdir)
10:        res.write(subdir);
11:     return;
12:  }