From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Heime via Users list for the GNU Emacs text editor Newsgroups: gmane.emacs.help Subject: Re: Websites with drupal and php Date: Sat, 28 Dec 2024 12:25:48 +0000 Message-ID: References: <7dkcJbw_PS8hnV_T9CylHCNv_3dW7F4Rv4-9Guer0KDJwvfue0jLA-2zrlqlTDuPcmy-_YjlPkeYFyBLRv8U5k7v5HeSivH4Ee0x3my96iw=@protonmail.com> Reply-To: Heime Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="8271"; mail-complaints-to="usenet@ciao.gmane.io" Cc: Heime via Users list for the GNU Emacs text editor To: Jean Louis Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane-mx.org@gnu.org Sat Dec 28 13:27:03 2024 Return-path: Envelope-to: geh-help-gnu-emacs@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 1tRVuJ-00020m-0a for geh-help-gnu-emacs@m.gmane-mx.org; Sat, 28 Dec 2024 13:27:03 +0100 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1tRVtR-0003Qy-DO; Sat, 28 Dec 2024 07:26:09 -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 1tRVtN-0003Qn-OX for help-gnu-emacs@gnu.org; Sat, 28 Dec 2024 07:26:05 -0500 Original-Received: from mail-40135.protonmail.ch ([185.70.40.135]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1tRVtL-0005cT-Cc for help-gnu-emacs@gnu.org; Sat, 28 Dec 2024 07:26:05 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=protonmail.com; s=protonmail3; t=1735388753; x=1735647953; bh=C8BP1wEZ5HKGZfxlQnemCJO2N9pPh+YVKBAkCK9Dwy4=; h=Date:To:From:Cc:Subject:Message-ID:In-Reply-To:References: Feedback-ID:From:To:Cc:Date:Subject:Reply-To:Feedback-ID: Message-ID:BIMI-Selector:List-Unsubscribe:List-Unsubscribe-Post; b=VKZRr0v5Dc4EgvPMJj24N1sXngeg4HHhk4YSbWQmtZpHrarGYUdnYB42jX9+gy41+ oFWa/EVBsQaxAKAcP4Y6ztW3sHY4/3kLBPn1rkRRCY1SbLzN0ab7itNvWzfBI+5xrH 2FuWi3U5jNWIU8rscMcOQEfpr0Jea9vwqAQpoZVRExyUrpMRC7tiTjSUHyVJjrfoaH oxJVZJxScKYIPnC0pKimYiz0pnf9V9Qn2xO6kHQlnVa0HHzg34ZIeTSc6b9F6//lOZ ja8K7RFUSFyVqHv9EoV8nKT0wrAspO4YU21rzEjAuwzsHGCigS2QndF2n7dlyuAyHG ORl6Ps0BHdIzw== In-Reply-To: Feedback-ID: 57735886:user:proton X-Pm-Message-ID: 613c00a8b00558647980880bb6003488f7bb379a Received-SPF: pass client-ip=185.70.40.135; envelope-from=heimeborgia@protonmail.com; helo=mail-40135.protonmail.ch 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, RCVD_IN_MSPIKE_H3=0.001, RCVD_IN_MSPIKE_WL=0.001, RCVD_IN_VALIDITY_CERTIFIED_BLOCKED=0.001, RCVD_IN_VALIDITY_RPBL_BLOCKED=0.001, SPF_HELO_PASS=-0.001, SPF_PASS=-0.001 autolearn=ham autolearn_force=no X-Spam_action: no action X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane-mx.org@gnu.org Original-Sender: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane-mx.org@gnu.org Xref: news.gmane.io gmane.emacs.help:149043 Archived-At: Sent with Proton Mail secure email. On Friday, December 27th, 2024 at 10:46 PM, Jean Louis w= rote: > * Heime via Users list for the GNU Emacs text editor help-gnu-emacs@gnu.o= rg [2024-12-21 00:00]: >=20 > > Have got a work assignment for a website where they are currently > > using wordpress. Been thinking about drupal with php. What is the > > Gnu Project current advice for good websites? >=20 >=20 > My personal advice is using GNU Emacs. >=20 > Not PHP. >=20 > Not Drupal. >=20 > Not WordPress. >=20 > GNU Emacs =F0=9F=98=8E >=20 > First I was using straight HTML, then asciidoc and SGML back in time, > simple files and generation of connected website, later somewhere > 2000-2004 I was using M4 macro processor, which I find very hand for > HTML pages. >=20 > PHP started as a scripting language in 1995, PHP or "Personal Home > Page" made out of Perl programming language. Later it changed to its > own programming language. >=20 > I find all HTML programming unreliable for any future-proof. >=20 > If I would use Common Lisp, I guess it would stay functional even > after 10 or 30 years. Emacs Lisp is pretty stable over the time, > though too many changes are coming and it cannot really stand the test > of the future, to remain stable over time. >=20 > m4 as macro processor stays the same! Whatever websites I made with it > in 2004 they are same now in 2024, imagine! >=20 > I would just include files, navigation, footers: >=20 > m4_include(basics.m4) >=20 > All the templates can be switched easily. >=20 > I did not even write HTML, I have used m4 macros for that. >=20 > Like this: > m4_define(`H1',`

$1

') >=20 >=20 > There are many Emacs tools to make website pages. You could use Org > for example, it generates good pages! >=20 > fniessen/org-html-themes: Transform your Org mode files into stunning HTM= L documents in minutes with our Org mode HTML theme. Elevate your productiv= ity and impress your readers! #orgmode #html #theme #productivity #design > https://github.com/fniessen/org-html-themes?tab=3Dreadme-ov-file >=20 > then you could just write Org and export to HTML, job done! >=20 > BREAK -- look at this guy: >=20 > Emacs Boost Training > https://emacsboost.com/en/ >=20 > Org-THTML: An HTML template system for org-mode > https://juanjose.garciaripoll.com/blog/org-mode-html-templates/index.html >=20 > Org Themes collection > https://olmon.gitlab.io/org-themes/ >=20 > look there, so many nice templates! >=20 > Is that something you can use? What does the Gnu Project and FSF use for their website? =20 > I don't use them, I use Org and then convert it to HTML and then use > ANY HTML template. Nobody even knows it was written in Org > mode. Though that is not my markup statistics, for website I use > mostly Markdown. I was one among first on Internet to use Markdown, > this is because at the time I was heavy user of Asciidoc and m4. >=20 > As Website Revision System programmer I have been using many tools, > that is why it is simple to me to provide mind map on how to proceed: >=20 > Think this way: >=20 > - you need HTML template; find one; >=20 > - you need various pages, you can simply write files; >=20 > - all pages must be somehow connected to each other, that means there > must be navigation for each page; >=20 > - make Emacs Lisp to generate all pages by using template and by > inserting navigation; >=20 > Rely on yourself, not on others. >=20 > I have used a single Perl program for that, now I am using =F0=9F=90= =83 Emacs. >=20 > I write a page, press a key, and it gets published. >=20 > Doing things my own way always passes the test over time. >=20 > Doing the exercise yourself will help you in future. >=20 > Basic HTML template is here: >=20 > >=20 > >=20 > >=20 > >=20 > =E2=9F=A6 (xml-escape wrs::title) =E2=9F=A7 >=20 > >=20 > >=20 > =E2=9F=A6 rcd::text =E2=9F=A7 > =E2=9F=A6 after_content =E2=9F=A7 > =E2=9F=A6 inquiry =E2=9F=A7 > >=20 > >=20 >=20 > I am using the >=20 > RCD Template Interpolation System for Emacs: > https://hyperscope.link/3/7/1/3/3/RCD-Template-Interpolation-System-for-E= macs.html >=20 > As that way I can interpoloate those things like =E2=9F=A6 languages_exte= nsion =E2=9F=A7 > or =E2=9F=A6 after_content =E2=9F=A7 by using variables. >=20 > I can insert navigation. It works well for me, I receive leads and > clients all the time. >=20 > -- > Jean Louis