diff options
author | Ryan Ramage <ryan.ramage@gmail.com> | 2013-05-10 09:10:02 -0600 |
---|---|---|
committer | Ryan Ramage <ryan.ramage@gmail.com> | 2013-05-10 23:41:32 -0600 |
commit | 4615a788dcc1ab00d0f63b43530aa6921654c538 (patch) | |
tree | a79e3cae544a4768269e3fa9c933f6d71cfbd776 /src/fauxton/js/helpers.js | |
parent | 65107660fa11b05d69476b76e69c66486b44bfea (diff) | |
download | couchdb-4615a788dcc1ab00d0f63b43530aa6921654c538.tar.gz |
Restructure to simpler jam/erica style.
- compile less files, templates into compiled requirejs
- Add simple rebuild command, to control minification,
- Add simple push command, to eash couchapp push.
Slight readme improvement
Diffstat (limited to 'src/fauxton/js/helpers.js')
-rw-r--r-- | src/fauxton/js/helpers.js | 35 |
1 files changed, 35 insertions, 0 deletions
diff --git a/src/fauxton/js/helpers.js b/src/fauxton/js/helpers.js new file mode 100644 index 000000000..6b3a7cd5e --- /dev/null +++ b/src/fauxton/js/helpers.js @@ -0,0 +1,35 @@ +// Licensed under the Apache License, Version 2.0 (the "License"); you may not +// use this file except in compliance with the License. You may obtain a copy of +// the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, WITHOUT +// WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the +// License for the specific language governing permissions and limitations under +// the License. + + +// This file creates a set of helper functions that will be loaded for all html +// templates. These functions should be self contained and not rely on any +// external dependencies as they are loaded prior to the application. We may +// want to change this later, but for now this should be thought of as a +// "purely functional" helper system. + + +define([ +], + +function() { + + var Helpers = {}; + + Helpers.imageUrl = function(path) { + // TODO: add dynamic path for different deploy targets + return path; + }; + + return Helpers; +}); + |