一个简单的HTML5样板django应用程序,它有一些预定义的模板块,可以在任何应用程序模板中扩展。
django-h5bp的Python项目详细描述
django-h5bp
==
一个简单的html5样板django应用程序,它有一些预定义的模板块,
可在任何应用程序模板中进行扩展。
installation
--------------------------
usage
-
将此应用程序添加到“已安装应用程序”设置:
已安装的应用程序=(
…
“django-h5bp”,
)
在基本模板中扩展h5bp模板,下面是一个示例:
{%extends“responsive/responsive hu h5bp.html”%}
{%block page title%}我的伟大项目{%endblock%}
{%block header%}
<;h1 class="title">Here is my page header</h1>
{%endblock%}
{%block main container%}
<;div>;
<;p>;你好,世界!<;/p>;
<;/div>;
{%endblock%}
{%block footer%}
<;p>;页脚<;/p>;
{%endblock%}
使用响应的html5样板django模板应该不太适合使用base.html。
static files
---------------------------
h5bp模板中包含一些js,以及默认的css样式,所有这些都在模板中正确配置为使用{{static_url}}标记。
根据您在安装的应用程序列表中放置应用程序的位置。
BR/> B5/> H5BP模板块
---------------------------BR/>< BR/>这是H5BP中存在的所有块。
* page-title
* meta-description
* meta-keywords
* meta-author
* meta-generator
* meta-extras
* css-extras
### \<body\>\<header\>
* header
### \<body\>\<div class="main"\>
* main-container
### \<body\>
* js-imports
### \<body\>\<
*jquery-docready
*jquery-winload
\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\应用程序还包含HTML5样板默认404页面,没有模板标记。
许可证
====
此软件使用MIT许可证分发,有关详细信息,请参阅许可证文件。
==
一个简单的html5样板django应用程序,它有一些预定义的模板块,
可在任何应用程序模板中进行扩展。
installation
--------------------------
usage
-
将此应用程序添加到“已安装应用程序”设置:
已安装的应用程序=(
…
“django-h5bp”,
)
在基本模板中扩展h5bp模板,下面是一个示例:
{%extends“responsive/responsive hu h5bp.html”%}
{%block page title%}我的伟大项目{%endblock%}
{%block header%}
<;h1 class="title">Here is my page header</h1>
{%endblock%}
{%block main container%}
<;div>;
<;p>;你好,世界!<;/p>;
<;/div>;
{%endblock%}
{%block footer%}
<;p>;页脚<;/p>;
{%endblock%}
使用响应的html5样板django模板应该不太适合使用base.html。
static files
---------------------------
h5bp模板中包含一些js,以及默认的css样式,所有这些都在模板中正确配置为使用{{static_url}}标记。
根据您在安装的应用程序列表中放置应用程序的位置。
BR/> B5/> H5BP模板块
---------------------------BR/>< BR/>这是H5BP中存在的所有块。
* page-title
* meta-description
* meta-keywords
* meta-author
* meta-generator
* meta-extras
* css-extras
### \<body\>\<header\>
* header
### \<body\>\<div class="main"\>
* main-container
### \<body\>
* js-imports
### \<body\>\<
*jquery-docready
*jquery-winload
\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\应用程序还包含HTML5样板默认404页面,没有模板标记。
许可证
====
此软件使用MIT许可证分发,有关详细信息,请参阅许可证文件。