diff options
author | kondou <kondou@ts.unde.re> | 2014-03-01 02:46:27 +0100 |
---|---|---|
committer | kondou <kondou@ts.unde.re> | 2014-06-02 21:09:41 +0200 |
commit | 9bc3f3cf304c300c758743f2e460beb1fee3ecac (patch) | |
tree | ea564110fcd3a28caee27af3bf36486d1783cc3e /core/js/octemplate.js | |
parent | c88c0b9a13231478c626296d78aac7c1f66d87d9 (diff) | |
download | nextcloud-server-9bc3f3cf304c300c758743f2e460beb1fee3ecac.tar.gz nextcloud-server-9bc3f3cf304c300c758743f2e460beb1fee3ecac.zip |
Scrutinizer cleanup
Diffstat (limited to 'core/js/octemplate.js')
-rw-r--r-- | core/js/octemplate.js | 11 |
1 files changed, 7 insertions, 4 deletions
diff --git a/core/js/octemplate.js b/core/js/octemplate.js index aab705059d2..67aa7d69cce 100644 --- a/core/js/octemplate.js +++ b/core/js/octemplate.js @@ -1,7 +1,8 @@ /** * jQuery plugin for micro templates * - * Strings are automatically escaped, but that can be disabled by setting escapeFunction to null. + * Strings are automatically escaped, but that can be disabled by setting + * escapeFunction to null. * * Usage examples: * @@ -11,13 +12,15 @@ * var htmlStr = '<p>Welcome back {user}</p>'; * $(htmlStr).octemplate({user: 'John Q. Public'}, {escapeFunction: null}); * - * Be aware that the target string must be wrapped in an HTML element for the plugin to work. The following won't work: + * Be aware that the target string must be wrapped in an HTML element for the + * plugin to work. The following won't work: * * var textStr = 'Welcome back {user}'; * $(textStr).octemplate({user: 'John Q. Public'}); * - * For anything larger than one-liners, you can use a simple $.get() ajax request to get the template, - * or you can embed them it the page using the text/template type: + * For anything larger than one-liners, you can use a simple $.get() ajax + * request to get the template, or you can embed them it the page using the + * text/template type: * * <script id="contactListItemTemplate" type="text/template"> * <tr class="contact" data-id="{id}"> |