Html/JavaScript/CSS code ouput in TextArea-- Best Ways

Discussion in 'Ruby' started by Smart RoR, Mar 3, 2010.

  1. Smart RoR

    Smart RoR Guest

    Hello:

    What would be the best way to Output Code in TextArea for a UI
    component?
    The Rails App View is pure HTML and JavaScript.

    >>render in text for controller action and the text is the code string.

    The < and > etc can be passed as is in this mode.

    >>Read a HTML Template File (containing JS and CSS references) in Public directory(?) that needs to be substitute some variables that were inputted in a form by the user.



    >>Create HTML on Ruby Side with some XML Builder instead of Reading a File.

    And then pass that String to code.

    Please advise.

    Thank you.
    --
    Posted via http://www.ruby-forum.com/.
    Smart RoR, Mar 3, 2010
    #1
    1. Advertising

  2. Smart RoR

    Smart RoR Guest

    Smart RoR wrote:
    > Hello:
    >
    > What would be the best way to Output Code in TextArea for a UI
    > component?
    > The Rails App View is pure HTML and JavaScript.
    >
    >>>render in text for controller action and the text is the code string.

    > The < and > etc can be passed as is in this mode.
    >
    >>>Read a HTML Template File (containing JS and CSS references) in Public directory(?) that needs to be substitute some variables that were inputted in a form by the user.

    >
    >
    >>>Create HTML on Ruby Side with some XML Builder instead of Reading a File.

    > And then pass that String to code.
    >
    > Please advise.
    >
    > Thank you.


    Sorry, this probably should be in Ruby on Rails forum.
    Thanks.
    --
    Posted via http://www.ruby-forum.com/.
    Smart RoR, Mar 3, 2010
    #2
    1. Advertising

Want to reply to this thread or ask your own question?

It takes just 2 minutes to sign up (and it's free!). Just click the sign up button to choose a username and then you can ask your own questions on the forum.
Similar Threads
  1. slash

    ouput issues

    slash, Jul 22, 2003, in forum: Perl
    Replies:
    0
    Views:
    1,036
    slash
    Jul 22, 2003
  2. Jp Calderone

    Re: ouput redirection..a newbie question

    Jp Calderone, Dec 15, 2003, in forum: Python
    Replies:
    2
    Views:
    300
    Lonnie Princehouse
    Dec 15, 2003
  3. Replies:
    3
    Views:
    359
  4. redirect ouput

    , Apr 23, 2007, in forum: Python
    Replies:
    1
    Views:
    243
    Gabriel Genellina
    Apr 23, 2007
  5. sl33k
    Replies:
    2
    Views:
    151
    Dave Angel
    Nov 21, 2011
Loading...

Share This Page