unofficial mirror of guile-user@gnu.org 
 help / color / mirror / Atom feed
From: "Daniel Meißner" <daniel.meissner-i4k@ruhr-uni-bochum.de>
To: "Aleix Conchillo Flaqué" <aconchillo@gmail.com>
Cc: guile-user <guile-user@gnu.org>
Subject: Re: GuileScript 0.0.0 released
Date: Tue, 18 Jan 2022 09:07:15 +0100	[thread overview]
Message-ID: <875yqhfowc.fsf@ruhr-uni-bochum.de> (raw)
In-Reply-To: <CA+XASoW7o0vh9BJ_c-oz0tnOHzWhU4C2+EP5U1OuP6OEODjwFw@mail.gmail.com> ("Aleix Conchillo Flaqué"'s message of "Mon, 17 Jan 2022 22:10:22 -0800")

Hi Aleix,

this is so cool, thanks for sharing!  Do you have any plans on adding
some simple WebAPI support?  I mean something along the following would
be very cool:

(render (document:query-selector ".app")
        `(form (h1 ,title)
           (input (@ (type "text")))
           (input (@ (type "submit")))))

compiles to:

const target = document.querySelector(".app");
const el1 = document.createElement("form");
const el2 = document.createElement("h1");
el2.innerText = title;
const el3 = document.createElement("input");
el3.setAttribute("type", "text");
const el4 = document.createElement("input");
el4.setAttribute("type", "submit");
el1.append(el2, el3, el4);

I imagine having a lot of fun writing a Browser web app in Guile :-)

Best
Daniel



  parent reply	other threads:[~2022-01-18  8:07 UTC|newest]

Thread overview: 8+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2022-01-18  6:10 GuileScript 0.0.0 released Aleix Conchillo Flaqué
2022-01-18  6:21 ` Jacob Hrbek
2022-01-18  6:26   ` Aleix Conchillo Flaqué
2022-01-18  8:07 ` Daniel Meißner [this message]
2022-01-18  8:12   ` Aleix Conchillo Flaqué
2022-01-18  8:22     ` Daniel Meißner
2022-01-18  9:05 ` Dr. Arne Babenhauserheide
2022-01-18 19:33   ` Aleix Conchillo Flaqué

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

  List information: https://www.gnu.org/software/guile/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=875yqhfowc.fsf@ruhr-uni-bochum.de \
    --to=daniel.meissner-i4k@ruhr-uni-bochum.de \
    --cc=aconchillo@gmail.com \
    --cc=guile-user@gnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).