Django Zurb Foundation package.
Project description
django-zurb-foundation 5.4.5
============================
Django Zurb Foundation 5 package.
Version of this package is equal to the version of Zurb Foundation it provides.
Usage
=====
- Add `foundation` to your `INSTALLED_APPS`.
- If you want to use the provided base template, extend from `foundation/base.html`. If you want to write one from scratch, see the example template.
- If you want to test if foundation works, include `foundation.urls` in your urls.py and visit the path. You should see the Foundation test page.
Including Foundation js/css/vendor files
=============================================
#### Note: these tags are deprecated in favor of including files directly with Django `static` tag. They will be removed in version 6.x. Templates have been updated to use the new method.
To include specific Foundation js files, you can use `foundation_js` tag.
For example, to include `abide` library use:
{% foundation_js 'abide' %}
Depending on your static url, it will replace the previous tag with something like `<script src="/static/foundation/js/foundation/foundation.abide.js"></script>`.
Same works for Foundation css and vendor files, but in that case use the `foundation_css` or `foundation_vendor` tag the same way.
Note that if you call `foundation_js` without any parameters, it will include `foundation.min.js` file.
Foundation icons
================
#### Note: this tag is deprecated in favor of including files directly with Django `static` tag. It will be removed in version 6.x. Templates have been updated to use the new method.
The latest Foundation icons set is now included in this package.
The icons are not enabled by default. To enable them use something like this in your template:
{% block css %}
{% foundation_css 'foundation-icons' %}
{% endblock css %}
If you have added `foundation.urls` to your urls.py visit `icons/` on that path to see them.
Changes
=======
Version 5.4.5
- Updated foundation to 5.4.5
Version 5.3.0.1
- Added scss files
Version 5.3.0
- Updated foundation to 5.3.0
- Deprecated foundation tags (they will be removed in version 6.x)
- Updated templates not to use tags
Version 5.1.1
- Updated foundation to 5.1.1
Version 5.0.3
- Moved `js/modernizr` to `js/vendor/modernizr` and removed `js/vendor/custom.modernizr`
- Moved `js/jquery` to `js/vendor/jquery`
Version 5.0.2
- Renamed `foundation_body` to `base_body`
- Removed zepto and renamed `foundation_jquery_zepto` block to `foundation_jquery`
- Included foundation icons
- Renamed `foundation_include` to `foundation_js`
- Added `foundation_vendor` and `foundation_css` tags
- Used the tags from this package in the base template
[![Bitdeli Badge](https://d2weczhvl823v0.cloudfront.net/amarsahinovic/django-zurb-foundation/trend.png)](https://bitdeli.com/free "Bitdeli Badge")
============================
Django Zurb Foundation 5 package.
Version of this package is equal to the version of Zurb Foundation it provides.
Usage
=====
- Add `foundation` to your `INSTALLED_APPS`.
- If you want to use the provided base template, extend from `foundation/base.html`. If you want to write one from scratch, see the example template.
- If you want to test if foundation works, include `foundation.urls` in your urls.py and visit the path. You should see the Foundation test page.
Including Foundation js/css/vendor files
=============================================
#### Note: these tags are deprecated in favor of including files directly with Django `static` tag. They will be removed in version 6.x. Templates have been updated to use the new method.
To include specific Foundation js files, you can use `foundation_js` tag.
For example, to include `abide` library use:
{% foundation_js 'abide' %}
Depending on your static url, it will replace the previous tag with something like `<script src="/static/foundation/js/foundation/foundation.abide.js"></script>`.
Same works for Foundation css and vendor files, but in that case use the `foundation_css` or `foundation_vendor` tag the same way.
Note that if you call `foundation_js` without any parameters, it will include `foundation.min.js` file.
Foundation icons
================
#### Note: this tag is deprecated in favor of including files directly with Django `static` tag. It will be removed in version 6.x. Templates have been updated to use the new method.
The latest Foundation icons set is now included in this package.
The icons are not enabled by default. To enable them use something like this in your template:
{% block css %}
{% foundation_css 'foundation-icons' %}
{% endblock css %}
If you have added `foundation.urls` to your urls.py visit `icons/` on that path to see them.
Changes
=======
Version 5.4.5
- Updated foundation to 5.4.5
Version 5.3.0.1
- Added scss files
Version 5.3.0
- Updated foundation to 5.3.0
- Deprecated foundation tags (they will be removed in version 6.x)
- Updated templates not to use tags
Version 5.1.1
- Updated foundation to 5.1.1
Version 5.0.3
- Moved `js/modernizr` to `js/vendor/modernizr` and removed `js/vendor/custom.modernizr`
- Moved `js/jquery` to `js/vendor/jquery`
Version 5.0.2
- Renamed `foundation_body` to `base_body`
- Removed zepto and renamed `foundation_jquery_zepto` block to `foundation_jquery`
- Included foundation icons
- Renamed `foundation_include` to `foundation_js`
- Added `foundation_vendor` and `foundation_css` tags
- Used the tags from this package in the base template
[![Bitdeli Badge](https://d2weczhvl823v0.cloudfront.net/amarsahinovic/django-zurb-foundation/trend.png)](https://bitdeli.com/free "Bitdeli Badge")
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
django-zurb-foundation-5.4.5.tar.gz
(379.6 kB
view hashes)
Close
Hashes for django-zurb-foundation-5.4.5.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | 7251849be86b9eec0082c2ae8c34cc27763c31fcedb3ae8a303493f79cbec7ed |
|
MD5 | e4714b527de2077655c6c8d228087fb8 |
|
BLAKE2b-256 | b5b9d640d6a0a60480c3fc9a0969da5f525860cba769ad0826442e9ef265bab8 |