I meant the @ syntax just like your example, but I was thinking of the @syntax being entered by the user via the browser<br><br>In 'continue<span class="RktPn">' roughly (</span><span class="RktSym">make-post</span><span class="hspace"> </span><span class="RktVal">"First Post"</span><span class="hspace"> </span><span class="RktVal">"</span><span class="nv">@p</span><span class="err">{</span><span class="nv">Hello </span><span class="nv"></span><span class="nv">@bold</span><span class="err">{</span><span class="nv">World</span><span class="nv"></span><span class="err">}</span>}
<span class="RktVal">"</span><span class="RktPn">)</span><br><br>What do you think?<br><br>Stephen<br><br><br><pre><div class="line" id="LC459"><span class="p">(</span><span class="k">define </span><span class="p">(</span><span class="nf">show-help</span> <span class="nv">req</span><span class="p">)</span></div>
<div class="line" id="LC460"> <span class="o">`</span><span class="p">(</span><span class="nf">html</span></div><div class="line" id="LC461"> <span class="p">(</span><span class="nf">head</span> <span class="p">(</span><span class="nf">title</span> <span class="s">"DrDr > Help"</span><span class="p">)</span></div>
<div class="line" id="LC462"> <span class="p">(</span><span class="nf">link</span> <span class="p">(</span><span class="err">[</span><span class="nv">rel</span> <span class="s">"stylesheet"</span><span class="err">]</span> <span class="err">[</span><span class="nv">type</span> <span class="s">"text/css"</span><span class="err">]</span> <span class="err">[</span><span class="nv">href</span> <span class="s">"/render.css"</span><span class="err">]</span><span class="p">)))</span></div>
<div class="line" id="LC463"> <span class="p">(</span><span class="nf">body</span></div><div class="line" id="LC464"> <span class="p">(</span><span class="nf">div</span> <span class="p">(</span><span class="err">[</span><span class="nv">class</span> <span class="s">"dirlog, content"</span><span class="err">]</span><span class="p">)</span></div>
<div class="line" id="LC465"> <span class="c1">; XXX Use same function as above</span></div><div class="line" id="LC466"> <span class="p">(</span><span class="nf">span</span> <span class="p">(</span><span class="err">[</span><span class="nv">class</span> <span class="s">"breadcrumb"</span><span class="err">]</span><span class="p">)</span></div>
<div class="line" id="LC467"> <span class="p">(</span><span class="nf">a</span> <span class="p">(</span><span class="err">[</span><span class="nv">class</span> <span class="s">"parent"</span><span class="err">]</span> <span class="err">[</span><span class="nv">href</span> <span class="s">"/"</span><span class="err">]</span><span class="p">)</span> <span class="s">"DrDr"</span><span class="p">)</span> <span class="s">" / "</span></div>
<div class="line" id="LC468"> <span class="p">(</span><span class="nf">span</span> <span class="p">(</span><span class="err">[</span><span class="nv">class</span> <span class="s">"this"</span><span class="err">]</span><span class="p">)</span> </div>
<div class="line" id="LC469"> <span class="s">"Help"</span><span class="p">))</span></div><div class="line" id="LC470"> <span class="nv">@div</span><span class="err">[[</span><span class="p">(</span><span class="nf">class</span> <span class="s">"help"</span><span class="p">)</span><span class="err">]]{</span></div>
<div class="line" id="LC471"> <span class="nv">@h1</span><span class="err">{</span><span class="nv">What</span> <span class="nv">is</span> <span class="nv">DrDr?</span><span class="err">}</span></div><div class="line" id="LC472">
<span class="nv">@p</span><span class="err">{</span><span class="nv">DrDr</span> <span class="nv">is</span> <span class="nv">a</span> <span class="nv">server</span> <span class="nv">at</span> <span class="nv">@a</span><span class="err">[[</span><span class="p">(</span><span class="nf">href</span> <span class="s">"<a href="http://www.byu.edu">http://www.byu.edu</a>"</span><span class="p">)</span><span class="err">]]{</span><span class="nv">Brigham</span> <span class="nv">Young</span> <span class="nv">University</span><span class="err">}</span> <span class="nv">that</span> <span class="nv">builds</span></div>
<div class="line" id="LC473"> <span class="k">and </span><span class="s">"tests"</span> <span class="nv">every</span> <span class="nv">push</span> <span class="nv">to</span> <span class="nv">the</span> <span class="nv">Racket</span> <span class="nv">code</span> <span class="nv">base</span><span class="o">.</span><span class="err">}</span></div>
<div class="line" id="LC474"> </div><div class="line" id="LC475"> <span class="nv">@h1</span><span class="err">{</span><span class="nv">What</span> <span class="nv">kind</span> <span class="nv">of</span> <span class="nv">server?</span><span class="err">}</span></div>
<div class="line" id="LC476"> <span class="nv">@p</span><span class="err">{</span><span class="nv">A</span> <span class="mi">64</span><span class="nv">-bit</span> <span class="nv">Linux</span> <span class="mf">2.6</span><span class="o">.</span><span class="mi">28-15</span> <span class="nv">server</span> <span class="nv">running</span> <span class="nv">Ubuntu</span> <span class="mf">9.04</span> <span class="nv">with</span> <span class="nv">@,</span><span class="p">(</span><span class="nb">number->string </span><span class="p">(</span><span class="nf">number-of-cpus</span><span class="p">))</span> <span class="nv">cores</span><span class="o">.</span><span class="err">}</span></div>
<div class="line" id="LC477"> </div><div class="line" id="LC478"> <span class="nv">@h1</span><span class="err">{</span><span class="nv">How</span> <span class="nv">is</span> <span class="nv">the</span> <span class="nv">build</span> <span class="nv">run?</span><span class="err">}</span></div>
</pre><br><br><br><br><br><div class="gmail_quote">On Fri, Oct 1, 2010 at 2:28 PM, Jay McCarthy <span dir="ltr"><<a href="mailto:jay.mccarthy@gmail.com">jay.mccarthy@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin: 0pt 0pt 0pt 0.8ex; border-left: 1px solid rgb(204, 204, 204); padding-left: 1ex;">
When you say "use Scribble" I presume you mean generate HTML like<br>
Scribble does? If so, you're right that it is designed for batch<br>
processing. I'm not sure it would be very useful to have it<br>
dynamically served because it is designed for a consistent, designed,<br>
structure.<br>
<br>
If what you mean is "use the @ syntax", then it's very easy. Just do<br>
<br>
#lang at-exp racket<br>
<br>
and you can use the @ syntax anywhere.<br>
<br>
I use it in the DrDr FAQ page:<br>
<br>
<a href="http://github.com/plt/racket/blob/master/collects/meta/drdr/render.ss" target="_blank">http://github.com/plt/racket/blob/master/collects/meta/drdr/render.ss</a><br>
[around line 470]<br>
<br>
Jay<br>
<div><div></div><div class="h5"><br>
On Fri, Oct 1, 2010 at 7:07 AM, Stephen De Gabrielle<br>
<<a href="mailto:stephen.degabrielle@acm.org">stephen.degabrielle@acm.org</a>> wrote:<br>
> I was just wondering if it was possible to use scribble as a markup<br>
> language in web apps like the continue demo?<br>
><br>
> I took a quick look, but the scribble lib seems to be focussed on<br>
> batch processing files, or being used as a language. Am I missing<br>
> something?<br>
><br>
> (I was thinking of doing a scribble wiki in the style of the continue demo.)<br>
><br>
> Cheers,<br>
> Stephen<br>
><br>
><br>
> --<br>
><br>
> --<br>
> Stephen De Gabrielle<br>
> <a href="mailto:stephen.degabrielle@acm.org">stephen.degabrielle@acm.org</a><br>
> Telephone +44 (0)20 85670911<br>
> Mobile +44 (0)79 85189045<br>
> <a href="http://www.degabrielle.name/stephen" target="_blank">http://www.degabrielle.name/stephen</a><br>
</div></div>> _________________________________________________<br>
> For list-related administrative tasks:<br>
> <a href="http://lists.racket-lang.org/listinfo/users" target="_blank">http://lists.racket-lang.org/listinfo/users</a><br>
><br>
<font color="#888888"><br>
<br>
<br>
--<br>
Jay McCarthy <<a href="mailto:jay@cs.byu.edu">jay@cs.byu.edu</a>><br>
Assistant Professor / Brigham Young University<br>
<a href="http://teammccarthy.org/jay" target="_blank">http://teammccarthy.org/jay</a><br>
<br>
"The glory of God is Intelligence" - D&C 93<br>
</font></blockquote></div><br><br clear="all"><br>-- <br><br>--<br>Stephen De Gabrielle<br><a href="mailto:stephen.degabrielle@acm.org">stephen.degabrielle@acm.org</a><br>Telephone +44 (0)20 85670911<br>Mobile +44 (0)79 85189045<br>
<a href="http://www.degabrielle.name/stephen">http://www.degabrielle.name/stephen</a><br><br>