@@ -27,47 +27,86 @@ The code is open source and released under the `ISC License (ISCL)`_. It is avai
2727.. _Semantic Versioning : http://semver.org/
2828.. _GitHub : https://github.com/timorieber/django-bootstrap-ui
2929
30- Getting started
31- ---------------
30+ Features
31+ --------
3232
33- #. First install the package using ``pip `` with the ``--pre `` option as long as this is a pre-release::
33+ * Full-featured Bootstrap 3 template (3.3.5)
34+ * Latest Font Awesome integration (4.3.0)
35+ * Intuitive template tag API for generating valid Bootstrap markup
36+ * Extensive and up-to-date documentation
37+ * Mainstream Python (2.7, 3.3, 3.4) and Django (1.7, 1.8) support
38+ * Outstanding `test coverage <https://coveralls.io/r/timorieber/django-bootstrap-ui?branch=master >`_
39+ * Continuously integrated codebase
3440
35- pip install --pre django-bootstrap-ui
41+ Installation
42+ ------------
3643
37- #. Add `` bootstrap_ui `` to your ``INSTALLED_APPS `` setting: :
44+ #. First install the package using `` pip `` with the ``--pre `` option as long as this is a pre-release :
3845
39- INSTALLED_APPS = (
40- ...
41- 'bootstrap_ui',
42- ...
43- )
46+ .. code :: bash
4447
45- #. Load `` bootstrap_ui_tags `` in your template::
48+ pip install --pre django-bootstrap-ui
4649
47- {% load bootstrap_ui_tags %}
50+ #. Add `` bootstrap_ui `` to your `` INSTALLED_APPS `` setting:
4851
49- #. Use bootstrap components through intuitive template tags::
52+ .. code :: python
5053
51- {% listgroup %}
52- {% listgroupitem %}
53- Your raw text.
54- {% endlistgroupitem %}
55- {% listgroupitem %}
56- You may also use a {{ context_variable }}.
57- {% endlistgroupitem %}
58- {% endlistgroup %}
54+ INSTALLED_APPS = (
55+ ...
56+ ' bootstrap_ui' ,
57+ ...
58+ )
5959
60- #. Some bootstrap components support different html tags, to change the default add a parameter::
60+ Usage
61+ -----
6162
62- {% listgroup use_tag="div" %}
63- ...
64- Your list group content goes here.
65- ...
66- {% endlistgroup %}
63+ Bootstrap template
64+ ******************
6765
68- Available bootstrap components
69- ------------------------------
66+ #. Extend ``bootstrap-skeleton.html `` in your base template:
7067
71- * Grid system (http://getbootstrap.com/css/#grid)
72- * List group (http://getbootstrap.com/components/#list-group)
73- * Panels (http://getbootstrap.com/components/#panels)
68+ .. code :: Django
69+
70+ {% extends "bootstrap_ui/bootstrap-skeleton.html" %}
71+
72+ #. Fill predefined blocks with your content:
73+
74+ .. code :: Django
75+
76+ {% block body-content %}
77+ <h1>Hello, I'm using django-bootstrap-ui!</h1>
78+ {% endblock %}
79+
80+ Template tag API
81+ ****************
82+
83+ #. Load ``bootstrap_ui_tags `` in your template:
84+
85+ .. code :: Django
86+
87+ {% load bootstrap_ui_tags %}
88+
89+ #. Use bootstrap components through intuitive template tags:
90+
91+ .. code :: Django
92+
93+ {% listgroup %}
94+ {% listgroupitem %}
95+ Your raw text.
96+ {% endlistgroupitem %}
97+ {% listgroupitem %}
98+ You may also use a {{ context_variable }}.
99+ {% endlistgroupitem %}
100+ {% endlistgroup %}
101+
102+ #. Some bootstrap components support different html tags, to change the default add a parameter:
103+
104+ .. code :: Django
105+
106+ {% listgroup use_tag="div" %}
107+ ...
108+ Your list group content goes here.
109+ ...
110+ {% endlistgroup %}
111+
112+ Continue reading in our `detailed documentation <https://django-bootstrap-ui.readthedocs.org >`_ at readthedocs.org.
0 commit comments