"path/filepath" "thegoods.biz/tmplmgr" ) const ( appname = "app" store_key = "foobar" base_path_env = "OPENSHIFT_REPO_DIR" // "APPROOT" for heroku ip = "OPENSHIFT_INTERNAL_IP" ) var ( mode = tmplmgr.Development assets_dir = filepath.Join(env(base_path_env, ""), "assets") template_dir = filepath.Join(env(base_path_env, ""), "templates") base_template = tmplmgr.Parse(tmpl_root("base.tmpl")) store = sessions.NewCookieStore([]byte(store_key)) base_meta = &Meta{ CSS: list{ "bootstrap.min.css", "bootstrap-navbar.css", "bootstrap-responsive.min.css", "screen.css", }, JS: list{ "jquery.min.js", "bootstrap.js", }, BaseTitle: appname, } )
const ( appname = "goci" store_key = "foobar" recent_amount = 20 ) var ( mode = tmplmgr.Production //TODO: make sure these things happen after the env import assets_dir = filepath.Join(env("APPROOT", ""), "assets") template_dir = filepath.Join(env("APPROOT", ""), "templates") dist_dir = filepath.Join(env("APPROOT", ""), "dist") base_template = tmplmgr.Parse(tmpl_root("base.tmpl")) recent_template = tmplmgr.Parse(tmpl_root("recent.tmpl")) current_template = tmplmgr.Parse(tmpl_root("current.tmpl")) store = sessions.NewCookieStore([]byte(store_key)) base_meta = &Meta{ CSS: list{ "bootstrap-superhero.min.css", // "bootstrap-responsive.min.css", "main.css", }, JS: list{ "jquery.min.js", "jquery-ui.min.js", "bootstrap.js", "status.js",