From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Sascha Ziemann Newsgroups: gmane.lisp.guile.user Subject: Re: Static site generator Date: Sat, 14 Jan 2023 00:00:21 +0100 Message-ID: References: Mime-Version: 1.0 Content-Type: text/plain; charset="UTF-8" Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="1633"; mail-complaints-to="usenet@ciao.gmane.io" To: guile-user@gnu.org Original-X-From: guile-user-bounces+guile-user=m.gmane-mx.org@gnu.org Sat Jan 14 00:01:22 2023 Return-path: Envelope-to: guile-user@m.gmane-mx.org Original-Received: from lists.gnu.org ([209.51.188.17]) by ciao.gmane.io with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1pGT33-0000Gq-Tb for guile-user@m.gmane-mx.org; Sat, 14 Jan 2023 00:01:21 +0100 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1pGT2a-0008BU-SS; Fri, 13 Jan 2023 18:00:52 -0500 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1pGT2V-00089i-Lu for guile-user@gnu.org; Fri, 13 Jan 2023 18:00:48 -0500 Original-Received: from mail-oa1-x30.google.com ([2001:4860:4864:20::30]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1pGT2L-0005SY-JD for guile-user@gnu.org; Fri, 13 Jan 2023 18:00:45 -0500 Original-Received: by mail-oa1-x30.google.com with SMTP id 586e51a60fabf-15bb8ec196aso12121432fac.3 for ; Fri, 13 Jan 2023 15:00:33 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=to:subject:message-id:date:from:in-reply-to:references:mime-version :from:to:cc:subject:date:message-id:reply-to; bh=poVQcwXnsjZNPLhH6SBiyLSLIH1R+BWYuYDHpxEAoYo=; b=feChe0JfW+ksoNMIaO+VzaY9TC/TI53cF0BU1oGjMVHZuY2r1ijbyiuJgtbY+rEGJS rq3ybBl14BmMEptFfxjU7Lorw3OhdWhPRaBNrU3zwQAVYBHj4vQ7ncpDatwy/P4bzuif QoLpjbrNG07wVNMj/XZSDFg0go3tR3vNcIedBOfhgkfNS98CoHodDy9OwhTw737Kfb6s qoGVXqme15qhUvJ25Trky3ataiwEgq+PosqoxHcX1LDWPnWxMZ0RiqXJhUyjdy0iUv1v V3t5hTKjMnXX5qOxWFE0Zxe5nEgxTsPJMtv14ERknrtn0lDtBFP5n64CUC2YCyZqWHpI TRtQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=to:subject:message-id:date:from:in-reply-to:references:mime-version :x-gm-message-state:from:to:cc:subject:date:message-id:reply-to; bh=poVQcwXnsjZNPLhH6SBiyLSLIH1R+BWYuYDHpxEAoYo=; b=sLuw1WW5He/D3Ic8dfuRGZUAF4rHOZFiKhLCRCF3/mYc+UOQXaWhc+ouLVntL4IoUq hMqS/Eh1j8XcaNU5Sp8vDleIhZQtg7ZX7Ka6DknAJNAlEaku8DRmT9wHV6tdHf98sjMm H4+8GRyWm36gc3xD2i3lmTUhLl16472RyvCDpTIQ26/6buX5G6NXXBzMbdu9xH5Zhlo/ o4UFlxHAt/voxSZNlN+Xv2G32qf1PYtcxtjNolbXmvWxLYimgedqaMTMDVBuuzspHhvi lGgJ4N5540g34C+N4GPCBPqQgXw+5CRPGnc9BOQFdoJS0rS/yaRCTGlPC5blat3VNUWQ KGqA== X-Gm-Message-State: AFqh2ko1OX1WsV1P6If/21xFD+WQybY4lGeUrl1cPOhPF1nKUTYBsYyL pp2/3MJbdNQn1JJxQfX3xQlEzlQ6FciVYXKSIdjAMAuG0iU= X-Google-Smtp-Source: AMrXdXvaKtDwV5SJEGzzqU/NFaZuKwLS2WrF2Ry+b/LVixNpLM9OSddr8BdDNXJ5AfbZktNHvxEVmdumuVQNUh2XobE= X-Received: by 2002:a05:6870:ac21:b0:144:910f:43ea with SMTP id kw33-20020a056870ac2100b00144910f43eamr5365454oab.140.1673650832498; Fri, 13 Jan 2023 15:00:32 -0800 (PST) In-Reply-To: Received-SPF: pass client-ip=2001:4860:4864:20::30; envelope-from=ceving@gmail.com; helo=mail-oa1-x30.google.com X-Spam_score_int: -20 X-Spam_score: -2.1 X-Spam_bar: -- X-Spam_report: (-2.1 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, FREEMAIL_FROM=0.001, RCVD_IN_DNSWL_NONE=-0.0001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=ham autolearn_force=no X-Spam_action: no action X-BeenThere: guile-user@gnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: General Guile related discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: guile-user-bounces+guile-user=m.gmane-mx.org@gnu.org Original-Sender: guile-user-bounces+guile-user=m.gmane-mx.org@gnu.org Xref: news.gmane.io gmane.lisp.guile.user:18869 Archived-At: Am Fr., 13. Jan. 2023 um 18:33 Uhr schrieb James Crake-Merani : > > I was wondering if you guys are aware of any static site generators > written in Guile. I'm looking for something that can be extended in > Guile so I can write my own code for it in Scheme. > All you need is quasiquote, unquote and a function which formats SXML as XML. (html `("" ,(let ((title "ceving")) `(html (@ (lang "de")) (head (meta (@ (charset "utf-8"))) (title ,title)) (body (h1 ,title) (ul (li (a (@ (href "1")) "Hello")))))))) The example is for Chez, but does not use any fancy: https://gist.github.com/ceving/c8aefd0fc6ea4fbf89571599e1d61046