开发者

Rails plugin, possible customize styelsheet?

开发者 https://www.devze.com 2023-01-11 01:44 出处:网络
could I have a stylesheets directory in Rails\' plugin directory? I am trying to write plugin for a existing Rails webApp, but st开发者_JAVA技巧ill not sure how to customize

could I have a stylesheets directory in Rails' plugin directory?

I am trying to write plugin for a existing Rails webApp, but st开发者_JAVA技巧ill not sure how to customize the default CSS for my plugin?


I have a example for this .

Please Reffer in rails ck editor.

IN rails-ck-editor they will give the css and javascripts in plugin itslef .

By running task we ca get the css files.

Please find the task file in the following path (vendor/plugins/rails-ckeditor/tasks/ckeditor_tasks.rake)

You can use this task according to you.

the rails-ck-editor link is

http://github.com/standout/rails-ckeditor

I suggest this only for your reference.

Thanks & Regards, Ramanaa Selvaa


The typical way is to write a generator in your plugin that copies your custom stylesheet into a special public/stylesheets/you directory in the main app. Then the generator prints out instructions to include the plugin stylesheet in the layouts.

0

精彩评论

暂无评论...
验证码 换一张
取 消

关注公众号