Wrapbootstrap集成 [英] Wrapbootstrap integration

查看:98
本文介绍了Wrapbootstrap集成的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

下午好,

我无法将此模板集成到我的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):

  1. 将目录复制到app/assets/javascripts|stylesheets下,例如:app/assets/stylesheets/revolution-slider
  2. 创建一个名为index.css(用于样式表资产)和index.js(用于js资产)的新清单文件.它应该在库目录中,并且应包含用于包含资产的常规指令,对于样式,通常为*= require_tree .,对于js通常为//= require_tree ..
  3. 最后,将库包含在主清单文件application.css|js中,如下所示:

  1. Copy your directories under your app/assets/javascripts|stylesheets , for example : app/assets/stylesheets/revolution-slider
  2. Create a new manifest file named index.css (for stylesheets assets) and index.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 . for js.
  3. 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屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆