Wrapbootstrap集成 [英] Wrapbootstrap integration
问题描述
下午好,
我无法将此模板集成到我的Rails应用程序中.我已经更改了所有图像,并将所有文件加载到了它们的相关区域.但是,它们仍然具有子目录.
I'm having trouble integrating this template into my rails application. I've changes all the images and loaded all the files into their relevant areas. However they still have the subdirectories.
有人知道我可以通过的指南,它可以解释您如何执行此操作,尤其是包括带有完整CSS和图像子目录的Revolution-slider.
Does anyone know of a guide I can walk through which might explain how you do this, especially to include the revolution-slider which has a whole subdirectory of CSS and images.
正在使用的模板:
https://wrapbootstrap.com/theme/pixma-sensitive-multipurpose-模板-WB0B348C6
感谢您的帮助.
推荐答案
建议您在资产管道打开的情况下使用Rails> 3,集成过程应该很简单,例如
Suggesting that you are on Rails > 3 with asset-pipeline on, the process of integration should be trivial like in this Rails guide, look for 2.2.2 - using index files):
- 将目录复制到
app/assets/javascripts|stylesheets
下,例如:app/assets/stylesheets/revolution-slider
- 创建一个名为
index.css
(用于样式表资产)和index.js
(用于js资产)的新清单文件.它应该在库目录中,并且应包含用于包含资产的常规指令,对于样式,通常为*= require_tree .
,对于js
通常为//= require_tree .
. -
最后,将库包含在主清单文件
application.css|js
中,如下所示:
- Copy your directories under your
app/assets/javascripts|stylesheets
, for example :app/assets/stylesheets/revolution-slider
- Create a new manifest file named
index.css
(for stylesheets assets) andindex.js
(for js assets) . It should be inside the library directory and should contain regular directives for including assets , usually*= require_tree .
for styles and//= require_tree .
forjs
. Finally, include your library in your main manifest file
application.css|js
like this:
//=require revolution-slider
用于javascript库
for javascript library
*= require revolution-slider
用于css
库.
这篇关于Wrapbootstrap集成的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!