forked from karma4u101/cms_site
/
jquery.cms.xml
84 lines (81 loc) · 2.81 KB
/
jquery.cms.xml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
<cms path="/jquery" serve="true" type="html" locale="en_US" host="liftweb.net">
<tag name="name" value="jQuery" />
<content>
<lift:surround with="default" at="content">
<head>
<title>Lift :: Using jQuery</title>
</head>
<div class="row-fluid">
<div class="span12">
<div class="row-fluid">
<div class="span9">
<div class="page-header">
<h1>Including jQuery in your project</h1>
</div>
<div class="alert alert-info">
<p>
Up until Lift 2.4, we included two versions of jQuery, 1.3 and
1.4. But both are very old versions by now. After some
discussions on the
mailing list we decided that the best solution moving forward was to
require users include their own version of jQuery.
</p>
</div>
<h2>Options:</h2>
<h3>Host your own</h3>
<p>
You can download jQuery and include it on your projects
webapp/js folder (you may have to create the js folder).
Then you reference this jQuery file in your template by using:
<pre class="prettyprint linenums">
<code class="lang-html">
<script type="text/javascript"
src="/js/jquery-1.7.2.min.js" id="jquery">
</script>
</code>
</pre>
</p>
<h3>Use a CDN</h3>
<p>
Instead of downloading jQuery to your project, you just
reference jQuery in your tempalte like this:
<pre class="prettyprint linenums">
<code class="lang-html">
<script type="text/javascript"
src="https://ajax.googleapis.com/ajax/libs/jquery/1.7.2/jquery.min.js" id="jquery">
</script>
</code>
</pre>
</p>
<h3>Use the lift-jquery-module module</h3>
<p>
This is a module written by one of the Lift committers, Peter
Petersson.
The idea behind this module is that it will provide easy jquery
upgrade/downgrade of upstream updates.
The module provides min version(s) of the jQuery file(s) in
production mode, while providing the regular
uncompressed version during development.
<br></br>
This is a separate module to allow rapid release cycles to keep
up with jQuery upstream.
</p>
<p>
Please refer to the
<a href="https://github.com/karma4u101/lift-jquery-module">README.md</a>
file for instructions on using this module
</p>
<p>
If you are having problems getting started, head over to the
<a href="http://groups.google.com/group/liftweb">mailing list.</a>
</p>
</div>
<div class="span3">
<lift:embed what="col2" />
</div>
</div>
</div>
</div>
</lift:surround>
</content>
</cms>