unofficial mirror of guile-user@gnu.org 
 help / color / mirror / Atom feed
From: "Aleix Conchillo Flaqué" <aconchillo@gmail.com>
To: "Daniel Meißner" <daniel.meissner-i4k@ruhr-uni-bochum.de>
Cc: guile-user <guile-user@gnu.org>
Subject: Re: GuileScript 0.0.0 released
Date: Tue, 18 Jan 2022 00:12:50 -0800	[thread overview]
Message-ID: <CA+XASoVrxaC0-zWgpWd-NLmngSzyBcz+1nMyA9fMMQMV8k9HAQ@mail.gmail.com> (raw)
In-Reply-To: <875yqhfowc.fsf@ruhr-uni-bochum.de>

Hi Daniel,

Yes, I was thinking adding support for interacting with the DOM at
some point.

Many cool things can be done. Thanks for the interest!

Aleix

On Tue, Jan 18, 2022, 12:07 AM Daniel Meißner <
daniel.meissner-i4k@ruhr-uni-bochum.de> wrote:

> 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
>


  reply	other threads:[~2022-01-18  8:12 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
2022-01-18  8:12   ` Aleix Conchillo Flaqué [this message]
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=CA+XASoVrxaC0-zWgpWd-NLmngSzyBcz+1nMyA9fMMQMV8k9HAQ@mail.gmail.com \
    --to=aconchillo@gmail.com \
    --cc=daniel.meissner-i4k@ruhr-uni-bochum.de \
    --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).