github.com/slspeek/camlistore_namedsearch@v0.0.0-20140519202248-ed6f70f7721a/doc/publishing/README (about)

     1  Camlistore uses Go html templates (http://golang.org/pkg/text/template/) to publish pages.
     2  
     3  Resources for publishing, such as go templates, javascript and css files should be placed in server/camlistored/ui/, so they can be served directly when using the dev server or automatically embedded when using camlistored directly.
     4  
     5  You can then specify those resources through the configuration file. For example, there already is a go template (gallery.html), javascript file (pics.js) and css file (pics.css) that work together to provide publishing for image galleries. The dev server config (config/dev-server-config.json) already uses them. Here is how one would use them in the server config ($HOME/.config/camlistore/server-config.json):
     6  
     7  "publish": {
     8  	"/pics/": {
     9  		"rootPermanode": "sha1-6cbe9e1c35e854eab028cba43d099d35ceae0de8",
    10  		"style": "pics.css",
    11  		"js": "pics.js",
    12  		"goTemplate": "gallery.html"
    13  	}
    14  }
    15  
    16  If you want to provide your own (Go) template, see http://camlistore.org/pkg/publish for the data structures and functions available to the template.
    17