From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Jean Louis Newsgroups: gmane.emacs.help Subject: Re: Websites with drupal and php Date: Fri, 27 Dec 2024 13:46:08 +0300 Message-ID: References: <7dkcJbw_PS8hnV_T9CylHCNv_3dW7F4Rv4-9Guer0KDJwvfue0jLA-2zrlqlTDuPcmy-_YjlPkeYFyBLRv8U5k7v5HeSivH4Ee0x3my96iw=@protonmail.com> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="7863"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: Mutt/2.2.12 (2023-09-09) Cc: Heime via Users list for the GNU Emacs text editor To: Heime Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane-mx.org@gnu.org Fri Dec 27 11:47:25 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 1tR7sK-0001uK-AX for geh-help-gnu-emacs@m.gmane-mx.org; Fri, 27 Dec 2024 11:47:24 +0100 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1tR7rp-0007TM-Pk; Fri, 27 Dec 2024 05:46:53 -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 1tR7rm-0007T8-15 for help-gnu-emacs@gnu.org; Fri, 27 Dec 2024 05:46:50 -0500 Original-Received: from stw1.rcdrun.com ([217.170.207.13]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1tR7rk-0002v8-2q for help-gnu-emacs@gnu.org; Fri, 27 Dec 2024 05:46:49 -0500 Original-Received: from localhost ([::ffff:41.75.190.33]) (AUTH: PLAIN admin, TLS: TLS1.3,256bits,ECDHE_RSA_AES_256_GCM_SHA384) by stw1.rcdrun.com with ESMTPSA id 000000000007DCBA.00000000676E8573.001270CE; Fri, 27 Dec 2024 03:46:10 -0700 Mail-Followup-To: Heime , Heime via Users list for the GNU Emacs text editor Content-Disposition: inline In-Reply-To: <7dkcJbw_PS8hnV_T9CylHCNv_3dW7F4Rv4-9Guer0KDJwvfue0jLA-2zrlqlTDuPcmy-_YjlPkeYFyBLRv8U5k7v5HeSivH4Ee0x3my96iw=@protonmail.com> Received-SPF: pass client-ip=217.170.207.13; envelope-from=bugs@gnu.support; helo=stw1.rcdrun.com X-Spam_score_int: -8 X-Spam_score: -0.9 X-Spam_bar: / X-Spam_report: (-0.9 / 5.0 requ) BAYES_00=-1.9, CONTENT_AFTER_HTML=1, RCVD_IN_VALIDITY_RPBL_BLOCKED=0.001, RCVD_IN_VALIDITY_SAFE_BLOCKED=0.001, SPF_HELO_PASS=-0.001, SPF_PASS=-0.001 autolearn=no 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:149021 Archived-At: * Heime via Users list for the GNU Emacs text editor [2024-12-21 00:00]: > 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? My personal advice is using GNU Emacs. Not PHP. Not Drupal. Not WordPress. GNU Emacs 😎 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. 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. I find all HTML programming unreliable for any future-proof. 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. m4 as macro processor stays the same! Whatever websites I made with it in 2004 they are same now in 2024, imagine! I would just include files, navigation, footers: m4_include(basics.m4) All the templates can be switched easily. I did not even write HTML, I have used m4 macros for that. Like this: m4_define(`H1',`

$1

') There are many Emacs tools to make website pages. You could use Org for example, it generates good pages! fniessen/org-html-themes: Transform your Org mode files into stunning HTML documents in minutes with our Org mode HTML theme. Elevate your productivity and impress your readers! #orgmode #html #theme #productivity #design https://github.com/fniessen/org-html-themes?tab=readme-ov-file then you could just write Org and export to HTML, job done! BREAK -- look at this guy: Emacs Boost Training https://emacsboost.com/en/ Org-THTML: An HTML template system for org-mode https://juanjose.garciaripoll.com/blog/org-mode-html-templates/index.html Org Themes collection https://olmon.gitlab.io/org-themes/ look there, so many nice templates! Is that something you can use? 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. 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: Think this way: - you need HTML template; find one; - you need various pages, you can simply write files; - all pages must be somehow connected to each other, that means there must be navigation for each page; - make Emacs Lisp to generate all pages by using template and by inserting navigation; Rely on yourself, not on others. I have used a single Perl program for that, now I am using 🐃 Emacs. I write a page, press a key, and it gets published. Doing things my own way always passes the test over time. Doing the exercise yourself will help you in future. Basic HTML template is here: ⟦ (xml-escape wrs::title) ⟧ ⟦ rcd::text ⟧ ⟦ after_content ⟧ ⟦ inquiry ⟧ I am using the RCD Template Interpolation System for Emacs: https://hyperscope.link/3/7/1/3/3/RCD-Template-Interpolation-System-for-Emacs.html As that way I can interpoloate those things like ⟦ languages_extension ⟧ or ⟦ after_content ⟧ by using variables. I can insert navigation. It works well for me, I receive leads and clients all the time. -- Jean Louis