Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP

Demonstrates the use of the compass-jquery-plugin.

Fetching latest commit…

Cannot retrieve the latest commit at this time

README.textile

compass-jquery-plugin

It this prelease you have to create gem from source.

Get gem from Gemcutter.
Get source from github.

You don’t need to run the compass -f jquery commands, because that has been already done for the example.

Description

A Sass-based Meta-Framework for Compass that allows you to mix and match any of the following:

  • jRails with
    • jQuery 1.4.2 and jQuery.UI 1.8 including themes
      or
    • jQuery 1.3.2 and jQuery.UI 1.7.2 including themes
  • jqGrid V3.6.4
  • dynatree V0.5.2

This library requires Compass.

jRails, jQuery and jQuery.UI including themes

Use compass to install the jRails, jQuery and jQuery.UI javascript library including themes into your project.

For jQuery 1.4.x:

compass [-r jquery] -f jquery -p jrails-1.4 

For jQuery 1.3.x

compass [-r jquery] -f jquery -p jrails-1.3 

You will find all the stylesheets in easy-to-read Sass format at:

stylesheets/jquery.ui

To use the localized stylesheets and javacripts for jQuery include (using the rails_xss plugin):

	= stylesheet_link_tag "compiled/jquery.ui/[theme].css", :media => 'screen, projection'
	= javascript_include_tag :defaults
    = raw jrails_javascripts(I18n.locale)

alternatively you can include:


= stylesheet_link_tag “compiled/jquery.ui/[theme].css”, :media => ‘screen, projection’
= javascript_include_tag :jquery_142 (or :jquery_132)
= javascript_include_tag :jrails
= raw jrails_javascripts(I18n.locale)

into your layouts.

jQuery Dynatree Plugin

Use compass to install the jQuery Dynatree javascript library into your project.

For jQuery 1.4.x:

compass [-r jquery] -f jquery -p dynatree-1.4 

For jQuery 1.3.x

compass [-r jquery] -f jquery -p dynatree-1.3 

You will find all the stylesheets in easy-to-read Sass format at:

stylesheets/jquery.ui

To use the localized stylesheets and javacripts include:

	= stylesheet_link_tag 'compiled/jquery.ui/dynatree.[skin].css', :media => 'screen, projection'
 	= javascript_include_tag :dynatree

jqGrid

Use compass to install the jqGrid javascript library into your project.

compass [-r jquery]  -f jquery -p jqgrid <project name>

You will find the jqGrid stylesheet in easy-to-read Sass format at:

stylesheets/jquery.ui

To use the localized stylesheets and javacripts include:

    = stylesheet_link_tag 'compiled/jquery.ui/jqGrid.css', :media => 'screen, projection'
    = raw jqgrid_javascripts(I18n.locale)

jqGrid now uses the jQuery UI Themes.

Thanks to the Contributors:

Rails

jQuery Plugins included

Note on Patches/Pull Requests

  • Fork the project.
  • Make your feature addition or bug fix.
  • Add tests for it. This is important so I don’t break it in a
    future version unintentionally.
  • Commit, do not mess with rakefile, version, or history.
    (if you want to have your own version, that is fine but
    bump version in a commit by itself I can ignore when I pull)
  • Send me a pull request. Bonus points for topic branches.

Copyright

Copyright © 2009-2010 Kosmas Schuetz. See LICENSE for details.

Something went wrong with that request. Please try again.