烧瓶的资产管理。
Flask-Funnel的Python项目详细描述
====
烧瓶漏斗
====
内容:
:本地:
…自述:BR/>>BR/>要求:< BR/> > BR/>********>(<BR/>< BR> >以下一项:
BR/>**********BR/>****************包括:…
**less**:如果需要编译"less"文件。
**scss**:如果需要编译"scss"文件。
**stylus**:如果需要计算"stylus"文件。
**coffee**:如果需要编译"coffee"文件。
**autoprefixer**:如果要让css文件自动刷新E.BR/>< BR> > BR/>安装YYI压缩机
柴油压缩机=
< BR> >使用"Yi压缩机",您必须安装JAVA。一旦Java已经安装了BR/>确保在应用程序配置中设置"java'Bi''",您可以从
& LT;http://GITHUB.COM/YI/YoCimoRoistor /下载& gt;r/>
配置
==
有几个配置选项可用于**烧瓶漏斗**:
**css捆绑包**
代码块::python
app.config['css_bundles']={
'bundle1':(
'stylesheet.css',
'another.css',
'tobecompile.less',
'tobecompile2.scss',
}
def失败的原因是:`{}`
**js-bundles**
javascript-bundle的一个指令:
……代码块::python
app.config['js\u bundles']={
'the\u bundle':(
'jquery.js',
'jquery ui.js',
'tubecompile.coffee',
}
ault**
这是
样式表的<;link>;标记的媒体属性的默认值。
默认为:`` bundles``
**yui_compressor_bin**
如果计划使用"yui compressor",则必须设置此变量。
*它没有默认值。*
**java_bin**
如果计划使用"yui compressor",则必须设置此变量。
*它没有默认值。*
**less-bin**
未使用压缩文件。
错误``是``true`,并且不使用压缩文件。
默认值为:``true`
**Stylus-bin**
如果需要"Stylus"支持,则必须将其指向``Stylus``。
默认值为:``Stylus``
**如果需要当"app.debug"为"true"且未使用压缩文件时,要编译的tylus文件。
默认为:``true`
**coffee-bin**
如果需要"coffee"支持,则必须将其指向"coffee"。
默认为:``coffee`
**coffee_preprocess**
如果希望在"app.debug"为
"true"且未使用压缩文件时编译coffeescript文件,
默认为:``true`
**autoprefixer\u bin**
如果要使用"autoprefixer",必须将其指向``autoprefixer``。
默认为:```autoprefixer``
**autoprefixer启用**
标志,指示是否在捆绑包上运行autoprefixer并预处理
文件。
alse``
**autoprefixer_browsers**
确定要为哪些浏览器添加前缀。有关详细信息,请参见"autoprefixer"文档
。
r/>*它没有默认值。*
**漏斗图使用的漏斗图使用的漏斗图使用的漏斗图使用的漏斗图使用的漏斗图使用的漏斗图使用的漏斗图使用的漏斗图使用的漏斗图使用的漏斗图使用的漏斗图使用的漏斗图使用的漏斗图使用的漏斗图使用的漏斗图使用的功能必须设置为使用的漏斗图使用的漏斗图使用的
`
您可以使用``css().``或``js()`
函数:
…代码块:html+jinja
{jinja2模板
<;!lt;lt;lt;lt;lt;lt;lt;lt;head>;
<;lt;title>;lt;title<;lt;title>;lt;lt;lt;lt;title>;lt;lt;lt;lt;title<;lt;lt;lt;lt;lt;lt;lt;lt;>{{css('bundle-name')}}
<;lt;lt;lt;lt;gt;lt;gt;lt;lt;lt;lt;lt;lt;lt;gt;lt;lt;lt;lt;lt;lt;lt;lt;lt;lt;lt;lt;lt;lt;lt;lt;lt;lt;lt;lt;lt;lt;lt;lt;lt;lt;lt;lt;lt;lt br/>
这将生成AP为每个捆绑包分配适当的标记。
注意:当"app.debug"为"true"时,这些将为捆绑包中的每个文件输出标记。
t。您可以通过
传递可选的第二个参数来覆盖它。
代码块::python
from flask.ext.script import manager
from flask.ext.funnel.manager import manager as funnel嫒manager
manager=manager(app)
manager.add嫒command('funnel',funnel嫒manager)
undle_assets
这将在应用程序的静态文件夹中创建一个"bundle"文件夹来存储捆绑的文件。css bundle进入"css"子文件夹,javascript bundle进入"js"子文件夹。这些子文件夹中的每个文件夹都将有许多
``*-min.``文件,这些文件是捆绑包的压缩和缩小版本。
。包括:../changelog
…包括:../contributors
…_ clean-css:http://github.com/goalsmashers/clean-css
。_烧瓶:http://flask.pocoo.org/
…_ flask-s3:http://github.com/e-dard/flask-s3
。_烧瓶脚本:http://github.com/techniq/flask script
…_ Github:http://github.com/rehandalal/flask漏斗
。_减:http://lesscss.org/
…_丑恶:http://github.com/mishoo/uglifyjs
…_ yui压缩机:http://github.com/yui/yui compressor
…_咖啡:http://jashkenas.github.com/coffee script/
…_ SCSS:http://sass-lang.com/
。_手写笔:http://learnboost.github.io/stylus/
…_ autoprefixer:https://github.com/ai/autoprefixer
烧瓶漏斗
====
内容:
:本地:
…自述:BR/>>BR/>要求:< BR/> > BR/>********>(<BR/>< BR> >以下一项:
BR/>**********BR/>****************包括:…
**less**:如果需要编译"less"文件。
**scss**:如果需要编译"scss"文件。
**stylus**:如果需要计算"stylus"文件。
**coffee**:如果需要编译"coffee"文件。
**autoprefixer**:如果要让css文件自动刷新E.BR/>< BR> > BR/>安装YYI压缩机
柴油压缩机=
< BR> >使用"Yi压缩机",您必须安装JAVA。一旦Java已经安装了BR/>确保在应用程序配置中设置"java'Bi''",您可以从
& LT;http://GITHUB.COM/YI/YoCimoRoistor /下载& gt;r/>
配置
==
有几个配置选项可用于**烧瓶漏斗**:
**css捆绑包**
代码块::python
app.config['css_bundles']={
'bundle1':(
'stylesheet.css',
'another.css',
'tobecompile.less',
'tobecompile2.scss',
}
def失败的原因是:`{}`
**js-bundles**
javascript-bundle的一个指令:
……代码块::python
app.config['js\u bundles']={
'the\u bundle':(
'jquery.js',
'jquery ui.js',
'tubecompile.coffee',
}
ault**
这是
样式表的<;link>;标记的媒体属性的默认值。
默认为:`` bundles``
**yui_compressor_bin**
如果计划使用"yui compressor",则必须设置此变量。
*它没有默认值。*
**java_bin**
如果计划使用"yui compressor",则必须设置此变量。
*它没有默认值。*
**less-bin**
未使用压缩文件。
错误``是``true`,并且不使用压缩文件。
默认值为:``true`
**Stylus-bin**
如果需要"Stylus"支持,则必须将其指向``Stylus``。
默认值为:``Stylus``
**如果需要当"app.debug"为"true"且未使用压缩文件时,要编译的tylus文件。
默认为:``true`
**coffee-bin**
如果需要"coffee"支持,则必须将其指向"coffee"。
默认为:``coffee`
**coffee_preprocess**
如果希望在"app.debug"为
"true"且未使用压缩文件时编译coffeescript文件,
默认为:``true`
**autoprefixer\u bin**
如果要使用"autoprefixer",必须将其指向``autoprefixer``。
默认为:```autoprefixer``
**autoprefixer启用**
标志,指示是否在捆绑包上运行autoprefixer并预处理
文件。
alse``
**autoprefixer_browsers**
确定要为哪些浏览器添加前缀。有关详细信息,请参见"autoprefixer"文档
。
r/>*它没有默认值。*
**漏斗图使用的漏斗图使用的漏斗图使用的漏斗图使用的漏斗图使用的漏斗图使用的漏斗图使用的漏斗图使用的漏斗图使用的漏斗图使用的漏斗图使用的漏斗图使用的漏斗图使用的漏斗图使用的漏斗图使用的漏斗图使用的功能必须设置为使用的漏斗图使用的漏斗图使用的
`
您可以使用``css().``或``js()`
函数:
…代码块:html+jinja
{jinja2模板
<;!lt;lt;lt;lt;lt;lt;lt;lt;head>;
<;lt;title>;lt;title<;lt;title>;lt;lt;lt;lt;title>;lt;lt;lt;lt;title<;lt;lt;lt;lt;lt;lt;lt;lt;>{{css('bundle-name')}}
<;lt;lt;lt;lt;gt;lt;gt;lt;lt;lt;lt;lt;lt;lt;gt;lt;lt;lt;lt;lt;lt;lt;lt;lt;lt;lt;lt;lt;lt;lt;lt;lt;lt;lt;lt;lt;lt;lt;lt;lt;lt;lt;lt;lt;lt br/>
这将生成AP为每个捆绑包分配适当的标记。
注意:当"app.debug"为"true"时,这些将为捆绑包中的每个文件输出标记。
t。您可以通过
传递可选的第二个参数来覆盖它。
代码块::python
from flask.ext.script import manager
from flask.ext.funnel.manager import manager as funnel嫒manager
manager=manager(app)
manager.add嫒command('funnel',funnel嫒manager)
undle_assets
这将在应用程序的静态文件夹中创建一个"bundle"文件夹来存储捆绑的文件。css bundle进入"css"子文件夹,javascript bundle进入"js"子文件夹。这些子文件夹中的每个文件夹都将有许多
``*-min.``文件,这些文件是捆绑包的压缩和缩小版本。
。包括:../changelog
…包括:../contributors
…_ clean-css:http://github.com/goalsmashers/clean-css
。_烧瓶:http://flask.pocoo.org/
…_ flask-s3:http://github.com/e-dard/flask-s3
。_烧瓶脚本:http://github.com/techniq/flask script
…_ Github:http://github.com/rehandalal/flask漏斗
。_减:http://lesscss.org/
…_丑恶:http://github.com/mishoo/uglifyjs
…_ yui压缩机:http://github.com/yui/yui compressor
…_咖啡:http://jashkenas.github.com/coffee script/
…_ SCSS:http://sass-lang.com/
。_手写笔:http://learnboost.github.io/stylus/
…_ autoprefixer:https://github.com/ai/autoprefixer