unofficial mirror of help-gnu-emacs@gnu.org
 help / color / mirror / Atom feed
From: Jean Louis <bugs@gnu.support>
To: Heime <heimeborgia@protonmail.com>
Cc: Heime via Users list for the GNU Emacs text editor
	<help-gnu-emacs@gnu.org>
Subject: Re: Websites with drupal and php
Date: Fri, 27 Dec 2024 13:46:08 +0300	[thread overview]
Message-ID: <Z26FcC5GX2vqiqM_@lco2> (raw)
In-Reply-To: <7dkcJbw_PS8hnV_T9CylHCNv_3dW7F4Rv4-9Guer0KDJwvfue0jLA-2zrlqlTDuPcmy-_YjlPkeYFyBLRv8U5k7v5HeSivH4Ee0x3my96iw=@protonmail.com>

* Heime via Users list for the GNU Emacs text editor <help-gnu-emacs@gnu.org> [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',`<h1>$1</h1>')

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:

<!DOCTYPE html>
<html lang="⟦ languages_extension ⟧">
  <head>
    <meta charset="utf-8">
    <title>⟦ (xml-escape wrs::title) ⟧</title>
  </head>
  <body>
    ⟦ rcd::text ⟧
    ⟦ after_content ⟧
    ⟦ inquiry ⟧
  </body>
</html>

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



  reply	other threads:[~2024-12-27 10:46 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2024-12-20 20:58 Websites with drupal and php Heime via Users list for the GNU Emacs text editor
2024-12-27 10:46 ` Jean Louis [this message]
2024-12-28 12:25   ` Heime via Users list for the GNU Emacs text editor

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

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

  git send-email \
    --in-reply-to=Z26FcC5GX2vqiqM_@lco2 \
    --to=bugs@gnu.support \
    --cc=heimeborgia@protonmail.com \
    --cc=help-gnu-emacs@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).