3 ms·
I love Textpattern, though I haven't used it lately. My dream would be Textpattern as the admin/author facing side, and then static site generation from that.
by Tomte 6y ago
I love Textpattern, though I haven't used it lately.
My dream would be Textpattern as the admin/author facing side, and then static site generation from that. I don't think there is a good plugin for that, yet.
- petecooper 6y agoI'm not familiar with SSGs - are they any that can take a sitemap (XML or whatever), bulk curl / wget the contents and save as flat files? If so, it should be easy enough to build a Textpattern sitemap scaffold with all the pages / articles / etc and then run a generator against it to spit out the files.
- Tomte 6y agoI'd probably just use wget directly, then. But it's another manual step, it would be cool to hand a prepared TP instance to someone and say "in this folder is your web site, upload it wherever you want". I have no idea how hard it would be to write such a plugin. Never looked into the dev side of TP, only used it back then. It's a niche idea, sure. Most people would want to use a "proper" SSG anyway. Edit: Actually, we two already talked about that here: https://news.ycombinator.com/item?id=23050113 https://news.ycombinator.com/item?id=23050113 You probably don't remember, either? :-)
- petecooper 6y ago>You probably don't remember, either? :-) Actually I did, I just didn't want to make it awkward!
- stefdawson 6y agoAuthor of the OP article here. One of the other devs has put together etc_cache which rolled in some static-site-esque goodness. http://www.iut-fbleau.fr/projet/etc/index.php?id=52 http://www.iut-fbleau.fr/projet/etc/index.php?id=52 It's not a true SSG but intelligent cache based on the database knowing what's changed and what hasn't. Might be worth a look for your next project. Coupled with the fact you no longer need to do the staging server dance, iterating or redesigning is a lot more streamlined than it once was. See: https://textpattern.com/weblog/the-end-of-the-web-development-staging-server https://textpattern.com/weblog/the-end-of-the-web-developmen... We'd love to see what you can do with Textpattern since you last dabbled.
- tannhaeuser 6y agoMight take a look into SGML: renders server-side and in the browser, based on static files rather than databases (though you can fetch from DBs, services, or other resources as well), based on the ISO standard that kicked (and still encompasses) all of HTML and XML, powerful templating without reaching Turing-completeness, markdown and other custom syntax support, HTML-aware injection-free templating, finite-state automata for stylesheets and other context-dependent templating ...