similar to: Using register_template_handler to serve CSS files (Making ActionView handle .css as .rhtml)

Displaying 20 results from an estimated 1000 matches similar to: "Using register_template_handler to serve CSS files (Making ActionView handle .css as .rhtml)"

2006 Aug 03
1
Using instance variables in CSS
What suggestions do you guys have for using instance variables in CSS? I suppose I could just include a partial with style tags, but I''m looking for something a little more elegant. I found this: http://rcss.rubyforge.org/ Has anyone used it? -- Posted via http://www.ruby-forum.com/.
2006 Mar 03
17
RCSS problems
Hi List! Following http://rcss.rubyforge.org/files/README.html, I''m trying to get RCSS to work with Rails. The rcss command itself works fine, but when trying to access http://localhost:3000/rcss/test.css I always get "Unknown action - No action responded to test.css", which I don''t understand since the route and controller are in place. Anyway, hopefully this is
2006 Mar 12
0
ERB and Builder template engines shouldn''t be so heavily wired in ActionView::Base
Problem: 1. ERB and Builder template engines are heavily wired in ActionView::Base 2. Should be optional. If we use different engine - why load all their stuff if not needed? 3. There are template engines which expect files in their own locations and cache them in their own way. For instance a template engine may store templates in a database. These engines don''t need any central source
2006 Jul 14
3
css in builder
Hello, I''m reading the builder project API (http://builder.rubyforge.org/), but I don''t find the answer to my question: Wich is the file name for CSS templates? (like RXML to XML). -- Daniel H
2006 Mar 23
5
Dirt simple .rcss templates
There was some discussion on this list recently about doing .rcss templates in Rails using a custom template handler. I''ve come up with a very simple way to support rcss without a handler. Turns out all it takes is a route and an action that calls render(:file...). I put a full write-up on my blog earlier today:
2005 Oct 18
1
Rcss - first public release
Hi All! My first contribution to Ruby/Rails community is ready. Here is short snippet from README as an overview: Rcss implements CSS-SSC (Server-side Constants) in Ruby. Main features: * Create rich CSS files using: - ERB templates - Server-side constants - Server-side classes (preliminary) * Simply add Rcss files to any Rails application * Process Rcss files off-line using command
2012 Sep 14
1
calling method on base intended to simulate initialize on instances?
class A def initialize setup_b setup_c end def b_and_c "#{@b} and #{@c}" end private def setup_b @b = ''b'' end def setup_c @c = ''c'' end def setup_d @d = ''d'' end end a = A.new a.instance_variable_get("@b") # => "b" a.instance_variable_get("@c") # =>
2007 Aug 21
1
Render template not matching absolute path
Hi I have a simple controller method like this: class StylesheetsController < ApplicationController layout nil session :off def gap site = Site.find_by_hostname(request.host) @colours = site.colours respond_to do |accepts| accepts.css { render :file => "#{RAILS_ROOT}/app/views/ stylesheets/gap.rcss" } end end end And I want to test that
2006 Apr 13
2
Content-type on render :file
Hi all, I''ve just been trying out the dirt-simple rcss scheme posted here: http://blog.hasmanythrough.com/articles/2006/03/23/dirt-simple-rcss-templates It looks like the content-type declaration on the line: render :file => file_name, :content_type => ''text/css'' isn''t getting honoured. I had to add a separate:
2003 Mar 31
2
Using R2HTML
Hello, I''m using R2HTML library to make a HTML page output (both data frames and graphics): HTMLStart(outdir=paste(getwd(),"/prove html", sep = ""),filename="index", echo = F, HTMLframe = T, withprompt = "HTML> ", CSSFile = "R2HTML.CSS", Title = "Indici di attivit?") ...
2006 Mar 02
3
plugin versioning
When I install a plugin, does Rails record the version installed anywhere? Maybe I''m not doing it the "right" way, but I''ve excluded vendors from my source repository. I''d like some ''record'' of what plugins are used that is under source control. David
2006 Apr 27
4
how to make views changable
Hello I need to make site views changeable I found how to change layouts but it is not enough, becouse templates can use different ways to display and organize content. I found one way to do this, but i need to make subfolders in my ''view/layouts'', ''view/controller_name'' both and to create additional subfolder somewhere in ''public'' to put
2007 Dec 17
6
Checkbox array and Ajax.updater
Hello all, I have some checkbox array like these: <input type=checkbox name=list[] value="1">Java<br> <input type=checkbox name=list[] value="2">JavaScript<br> <input type=checkbox name=list[] value="3">ASP<br> <input type=checkbox name=list[] value="4">HTML<br> <input type=checkbox name=list[]
2008 Apr 15
0
How to cache dynamic CSS (RCSS)?
Hi, I''m using this tutorial: http://blog.hasmanythrough.com/2006/3/23/dirt-simple-rcss-templates to make dynamic CSS files. However I can''t figure out how expire cached CSS files. Here''s my code: http://pastie.caboo.se/181021. Most of it is copied from the tutorial. Files are cached properly - i.e. <%= stylesheet_link_tag "main" %> generates
2006 Mar 22
5
Adding Custom templates?
Hi, does anybody have any pointers on where to look to learn how to write custom dynamic templates? Agile is a little sparse on this (but otherwise superb)! Thanx -- Posted via http://www.ruby-forum.com/.
2006 Aug 11
6
css - location of files.
Hi all. I have the following scenario. http://myapp/site1 is using <%= stylesheet_link_tag ''myapp_standard'' %> to define the stylesheet for layout, I have myapp_standard.css in /public/stylesheets and it works fine. However, in the stylesheet I define a image to use for my site background. eg: html, body{ background-image: url(mysite_background.jpg); padding-top:
2006 Mar 15
4
[NQ] How to set an initial FK for a new item of something?
Hi all, running into a little problem here. I''ve a list of things with a "New thing" link beneath it. When you click that link, obviously, a new thing shall be created. Now, that works pretty fine for things that don''t have foreign keys, but for things that do it crashes, since there is not yet a thing.other_thing.name available. I suspect you can somewhere in
2020 Jul 21
2
Example of Jitsi Desktop provisioning file
Hi, Le ven. 10 juil. 2020 à 16:56, Sylvain Boily <sylvain at wazo.io> a écrit : > > It probably can help you: > > https://github.com/wazo-platform/wazo-provd-plugins/blob/master/plugins/xivo-jitsi/1/templates/base.tpl > > Sylvain > > Yes, provided example was exactly what I was after ! Thank you very much ! -------------- next part -------------- An HTML attachment
2009 Dec 24
7
nested variables
Hi all! I have quation: how i may use nested variables/facts? For example, I have variable $iface. It''s variable declared in node brakets, and, use with defenition. iface may be eth0, eth1(Linux), em0, ... <freebsd>, ... is fact: facter | grep eth0 | grep mac macaddress_eth0 => 54:52:00:3D:CB:40 We don''nt know name of $iface in our module (to generate network
2006 Mar 01
1
Using delegate templates
Ok, it looks like what I need to do is use a delegate template, but I can''t find anything anywhere online. Has anyone ever used this feature before and could possibly explain it to me please? -- Topher Fangio fangiotophia@gmail.com http://www.fangiotophia.com Website Specialist Fangiotophia Designs (325) 660-7141