This repository was archived by the owner on Feb 11, 2020. It is now read-only.
File tree 2 files changed +31
-4
lines changed
2 files changed +31
-4
lines changed Original file line number Diff line number Diff line change @@ -20,11 +20,38 @@ popular Bootstrap UI framework (http://getbootstrap.com).
20
20
Quick start
21
21
-----------
22
22
23
- 1. Add ``bootstrap_ui `` to your ``INSTALLED_APPS `` setting
24
- like this::
23
+ 1. Add ``bootstrap_ui `` to your ``INSTALLED_APPS `` setting::
25
24
26
25
INSTALLED_APPS = (
27
26
...
28
27
'bootstrap_ui',
29
28
...
30
29
)
30
+
31
+ 2. Load ``bootstrap_ui_tags `` in your template::
32
+
33
+ {% load bootstrap_ui_tags %}
34
+
35
+ 3. Use bootstrap components through intuitive template tags::
36
+
37
+ {% listgroup %}
38
+ {% listgroupitem %}
39
+ Your raw text.
40
+ {% endlistgroupitem %}
41
+ {% listgroupitem %}
42
+ You may also use a {{ context_variable }}.
43
+ {% endlistgroupitem %}
44
+ {% endlistgroup %}
45
+
46
+ 4. Some bootstrap components support different html tags, to change the default add a parameter::
47
+
48
+ {% listgroup use_tag="div" %}
49
+ ...
50
+ Your list group content goes here.
51
+ ...
52
+ {% endlistgroup %}
53
+
54
+ Supported bootstrap components
55
+ ------------------------------
56
+
57
+ * List group (http://getbootstrap.com/components/#list-group)
Original file line number Diff line number Diff line change 9
9
10
10
setup (
11
11
name = 'django-bootstrap-ui' ,
12
- version = '0.1-alpha1 ' ,
12
+ version = '0.1-alpha2 ' ,
13
13
packages = find_packages (exclude = ['tests' ]),
14
14
include_package_data = True ,
15
- license = 'ISC License' ,
15
+ license = 'ISC License (ISCL) ' ,
16
16
description = 'This aims to be a powerful Django app to ease the integration of the popular Bootstrap UI framework'
17
17
' (http://getbootstrap.com).' ,
18
18
long_description = README ,
You can’t perform that action at this time.
0 commit comments