How to insert tags?

Dear Professionals !

HTML-page has a tag:

  • NAME
    <%= @fmod.NAME %>
  • How to insert(in the Ruby program) almost same tags after this tag with
    other parameters than NAME ?

    Warm Wishes

    Since you’re editing HTML, I’d use Nokogiri:

    Hello,

    On 9 Αυγ 2013, at 09:21 , Mak K. [email protected] wrote:

    other parameters than NAME ?
    Not sure what are you trying to do, create the example above or scrap
    it? If you want to scape it use Nokogiri, if you want to create it, you
    can use many languages that produce HTML: ERB, HAML, SLIM, etc.

    in HAML would be:

    %li
    .itemLabel NAME
    .itemValue= @fmod.NAME

    See here: Haml :: Tutorial and http://html2haml.heroku.com

    Warm Wishes


    Posted via http://www.ruby-forum.com/.

    Regards,

    Panagiotis (atmosx) Atmatzidis

    email: [email protected]
    URL: http://www.convalesco.org
    GnuPG ID: 0x1A7BFEC5
    gpg --keyserver pgp.mit.edu --recv-keys 1A7BFEC5