Rcss 0.3.1

Sponsored Links

Rcss 0.3.1 Ranking & Summary

RankingClick at the star to rank
Ranking Level
User Review: 0 (0 times)
File size: 0.008 MB
Platform: Any Platform
License: MIT/X Consortium License
Price:
Downloads: 1459
Date added: 2005-10-26
Publisher: Bragi Ragnarson

Rcss 0.3.1 description

Rcss addresses issue of CSS maintainability. Even a minor change in complex stylesheet usually requires using search-and-replace.
A simple way to fix this flaw is to allow some kind of constant/variable substitution inside CSS. Using Rcss you can achieve that in three ways:
ERB templates
ERB templating is the most flexible solution. It uses standard ERB syntax (the same you can find in rhtml files). ERB allows you to inlude in the CSS values defined in controller. This gives access to database through ActiveRecord and allows database-driven CSS themes.
Strengths
Access to application data (through ActiveRecord)
Flexible Ruby syntax (allowing programmatic CSS)
Weaknesses
Syntax unfamiliar to CSS designers
A bit ugly and sometimes error-prone embedding
Not portable
Example
< % template_color = "#000"
template_background = "#fff"
template_highlight = "#fa3"
% >
body {
color: < %= template_color % >;
background-color: < %= template_background % >;
}
h1 {
color: < %= template_background % >;
background-color: < %= template_highlight % >;
}
Server-side Constants
Server-side Constants were originaly developed by Shaun Inman in PHP. SSC extends CSS syntax in a simple way. SCC is cross-platform and easy to use.
Rcss differs from original implementation in two ways :
Constants may have complex values (including spaces and commas)
Includes are not implemented
Strengths
Simple syntax
SSC-CSS files can be used in both Rails and PHP applications
Weaknesses
Only simple constant substitution
Example
@server constants {
template_color: #000;
template_background: #fff;
template_highlight: #fa3;
// Rcss specific (note spaces and commas)
template_font: "Trebuchet MS", "Bitstream Vera Sans", helvetica, sans-serif;
}
body {
color: template_color;
background-color: template_background;
font-family: template_font;
}
h1 {
color: template_background;
background-color: template_highlight;
font-family: template_font;
}
Enhancements:
- Ruby 1.8.2 is now used for builds, which fixes an invalid GEM problem and allows the software to actually be installed.

Rcss 0.3.1 Screenshot

Advertisements

Rcss 0.3.1 Keywords

Bookmark Rcss 0.3.1

Hyperlink code:
Link for forum:

Rcss 0.3.1 Copyright

WareSeeker periodically updates pricing and software information of Rcss 0.3.1 full version from the publisher, so some information may be slightly out-of-date. You should confirm all information before relying on it. Software piracy is theft, Using crack, password, serial numbers, registration codes, key generators is illegal and prevent future development of Rcss 0.3.1 Edition. Download links are directly from our publisher sites, torrent files or links from rapidshare.com, yousendit.com or megaupload.com are not allowed

Allok Video Splitter 2.2.0 Review:

Name (Required)
Email(Required)
Captcha
Featured Software

Want to place your software product here?
Please contact us for consideration.

Contact WareSeeker.com
Related Software
Rol is a simple application for reading RSS or RDF feeds such as those produced by many news sites or Weblogs. Free Download
Cdw is a CD burning front-end for Linux. Free Download
DLC is a compact utility that allows loading of shared libraries with C++ classes at runtime in an elegant and convenient way. Free Download
K-CSS project is a simple CSS editor. Free Download
threeDS is a Python module for loading and displaying 3D models in the 3DStudio Max 3DS format. Free Download
USBSink is a GNOME program for file synchronization over USB. Free Download
Qscmxx is an SCMxx frontend for OPIE. Free Download
QSynth is a Qt GUI Interface for FluidSynth. Free Download