Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.lang.postscript > #3010

Re: html generator

From Carlos <angus@quovadis.com.ar>
Newsgroups comp.lang.postscript
Subject Re: html generator
Date 2017-03-22 22:02 +0100
Organization A noiseless patient Spider
Message-ID <20170322220232.3c641ccb@samara.DOMA> (permalink)
References <3f057c06-9f44-4f91-9912-361bd7667bbe@googlegroups.com>

Show all headers | View raw


[luser droog <luser.droog@gmail.com>, 2017-03-21 22:44]
> A friend and I are working on a webpage builder. As part of
> our design process I wrote up a draft in postscript, knowing
> that I could knock one out fairly quickly.
> 
> So this is what I came up with, for the curious or the bored.
> As I described the behavior to my friend, he replied "Oh, so
> it's object-oriented postscript; that's frightening."
> 
> It's meant to describe a control panel that will be "compiled"
> into html/js.

Nice.

[...]
> /wireless <<
>               /Type /controls cvx
>               /afterburner { (Afterburner) [(Auto)(Enable)(Disable)] select }
>               /ap_isolation { (AP Isolation) check }
>               /authentication { (Authentication) [(Auto)(Shared Key)] select }
>           >> def  
[...]
> /controls {
>     (      <table>)=
>     {
>         1 index /Type eq {
>             pop pop
>         }{
>             exec
>         } ifelse
>     } forall
>     (      </table>)=
> } def
[...]
>       <table>
>         <tr>
>           <td>Afterburner</td>
>           <td>
>             Auto <input type=radio name=afterburner value=0>
>             Enable <input type=radio name=afterburner value=1>
>             Disable <input type=radio name=afterburner value=2>
>           </td>
>         </tr>
>         <tr>
>           <td>Authentication</td>
>           <td>
>             Auto <input type=radio name=authentication value=0>
>             Shared Key <input type=radio name=authentication value=1>
>           </td>
>         </tr>
>       </table>

How did you ensure the order? (?)

Btw, isn't it a shame Adobe made characters < / > syntax? An opportunity for a
real nice DSL for XML/HTML was lost...
-- 

Back to comp.lang.postscript | Previous | Next — Previous in thread | Next in thread | Find similar | Unroll thread


Thread

html generator luser droog <luser.droog@gmail.com> - 2017-03-21 22:44 -0700
  Re: html generator Carlos <angus@quovadis.com.ar> - 2017-03-22 22:02 +0100
    Re: html generator tlvp <mPiOsUcB.EtLlLvEp@att.net> - 2017-03-22 18:24 -0400
      Re: html generator luser droog <luser.droog@gmail.com> - 2017-03-22 16:45 -0700
        Re: html generator JohnF <john@please.see.sig.for.email.com> - 2017-03-23 05:18 +0000
        Re: html generator tlvp <mPiOsUcB.EtLlLvEp@att.net> - 2017-03-23 19:33 -0400
      Re: html generator Carlos <angus@quovadis.com.ar> - 2017-03-23 07:56 +0100
    Re: html generator luser droog <luser.droog@gmail.com> - 2017-03-22 16:44 -0700
  functional ps? was: Re: html generator luser droog <luser.droog@gmail.com> - 2017-03-31 23:48 -0700
    Re: functional ps? was: Re: html generator Carlos <angus@quovadis.com.ar> - 2017-04-01 23:33 +0200
      Re: functional ps? was: Re: html generator luser droog <luser.droog@gmail.com> - 2017-04-03 08:10 -0700
        Re: functional ps? was: Re: html generator luser droog <luser.droog@gmail.com> - 2017-04-07 07:07 -0700
        Re: functional ps? was: Re: html generator tlvp <mPiOsUcB.EtLlLvEp@att.net> - 2017-04-07 22:43 -0400

csiph-web