🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: pl.comp.lang.ruby
Article #359

Re: .rhtml -- jak wdrukowac sie w strone?

#359
From: Lukasz Skowronski
Date: Tue, 19 Dec 2006 22:06
20 lines
1621 bytes
Uzytkownik "Maciej Pilichowski" <bantu@SKASUJTOpoczta.FM> napisal w 
wiadomosci news:ro8fo2d7fohath0iqti91rctl2oaeldpcj@4ax.com...
> Hej,
>
>  <%= wpisuje w strone wynik, ale chcialbym trzymac sie jednego bloku
> <% nie dzielac go na sekcje i uzywac jakiegos puts do wdrukowywania w
> strone danych, czyli podobnie jak w php.
>  Czy da sie to zrobic, a jesli tak, to jak?
>

Legalnie chyba sie nie da. Jesli jednak niekoniecznie musi byc to 
rozwiazanie w pelni zgodne ze sztuka, to mozna uzyc hacka:

<%
s = "foo"
_erbout.concat(s)
%>

Pozdrowienia
Lukasz 
Technical Details
Message-ID: <em9nr7$68f$1@atlantis.news.tpi.pl>
Path: mbox-mo1.pugleaf.net!news-archive.icm.edu.pl!mat.uni.torun.pl!news.man.torun.pl!newsfeed.pionier.net.pl!news.nask.pl!news.nask.org.pl!newsfeed.tpinternet.pl!atlantis.news.tpi.pl!news.tpi.pl!not-for-mail
References: <ro8fo2d7fohath0iqti91rctl2oaeldpcj@4ax.com>

Show Full Headers
Complete Article Headers
Path: mbox-mo1.pugleaf.net!news-archive.icm.edu.pl!mat.uni.torun.pl!news.man.torun.pl!newsfeed.pionier.net.pl!news.nask.pl!news.nask.org.pl!newsfeed.tpinternet.pl!atlantis.news.tpi.pl!news.tpi.pl!not-for-mail
From: "Lukasz Skowronski" <xxxx@xxxxxxxxxxxxx.com>
Newsgroups: pl.comp.lang.ruby
Subject: Re: .rhtml -- jak wdrukowac sie w strone?
Date: Tue, 19 Dec 2006 23:06:33 +0100
Organization: tp.internet - http://www.tpi.pl/
Lines: 22
Message-ID: <em9nr7$68f$1@atlantis.news.tpi.pl>
References: <ro8fo2d7fohath0iqti91rctl2oaeldpcj@4ax.com>
NNTP-Posting-Host: dqp218.neoplus.adsl.tpnet.pl
X-Trace: atlantis.news.tpi.pl 1166566055 6415 83.24.175.218 (19 Dec 2006 22:07:35 GMT)
X-Complaints-To: usenet@tpi.pl
NNTP-Posting-Date: Tue, 19 Dec 2006 22:07:35 +0000 (UTC)
X-Priority: 3
X-MSMail-Priority: Normal
X-Newsreader: Microsoft Outlook Express 6.00.2900.2869
X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2900.2962
X-RFC2646: Format=Flowed; Original
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 7bit