Total Pageviews

Thursday, 9 April 2026

一个php框架silex

 

This is an introduction to my choice of framework in building this website.

Several options I considered for my website:

  • Django
    • Django's opinionated Model model with its strong database ties seemed a bit much for a relatively static site
    • It's huge and unnecessarily complicated for a simple website
    • It would be a great learning experience in Python
  • Vanilla PHP
    • I have a lot of experience in vanilla PHP at my internship at Northern Michigan University working in the Information Services department where I develop web applications for internal use.
    • I often find myself frustrated with PHP's quirkiness and wouldn't learn new material if I used this for my personal website.
  • Silex
    • This is a micro-framework built using components of the much larger Symfony framework.
    • I discovered Silex in Heroku's PHP deployment guide where I noticed that it was small enough to not draw unneeded overhead and extensible enough for my website to grow as it needed.

I opted to go with Silex. The source code is available here for your perusal.

I have gone through many iterations of this site. The first version was simply a clone of the homepage that I have on my university's computer science department server. This wasn't a very useful homepage as many of the projects that I wanted to show in a portfolio were tied to a database on that server.

I eventually moved towards a one-page style layout (in this commit) where the links in the navbar would scroll the page to pre-defined regions. I then ditched the old multipage layout and at this point I discovered Grav. After difficulties integrating Grav within my app (read more here), I decided to roll my own blogging solution modeled after Grav's markdown content system.

I included a YAML Front Matter + Markdown Parser and used that to define the metadata for a blogpost.

There is still much to do (post sort order, paging, tagging, etc), but I appreciate the experience that I have gained in building this blogging system.

网站的源代码: https://github.com/benharri/benhh.com

from  https://benhh.bhh.sh/blog/silex/

cms汇总

 https://en.wikipedia.org/wiki/List_of_content_management_systems

 其中无需数据库的cms有:

 https://en.wikipedia.org/wiki/Blosxom

 https://en.wikipedia.org/wiki/CMSimple

 https://en.wikipedia.org/wiki/DokuWiki

 https://en.wikipedia.org/wiki/Foswiki

 https://en.wikipedia.org/wiki/GetSimple_CMS

 https://en.wikipedia.org/wiki/Grav_(CMS)

 https://en.wikipedia.org/wiki/Ikiwiki

 https://en.wikipedia.org/wiki/MoinMoin (基于python)

 https://en.wikipedia.org/wiki/PhpWiki

 https://en.wikipedia.org/wiki/PmWiki

 https://en.wikipedia.org/wiki/Sellerdeck

 https://en.wikipedia.org/wiki/TiddlyWiki (基于nodejs)

 https://en.wikipedia.org/wiki/TWiki

 

Wednesday, 8 April 2026

伊朗緊急求助中國,要「安全保護傘」!看懂中方這波教科書級的太極推手,才知美國挖的「新冷戰陷阱」有多惡毒

蔷薇处处开

 

huggingface.co/spaces

 AI App Directory。

 https://huggingface.co/spaces

基于Makefile的静态网站生成器:site-by-benibela

 

Just my webpage

 
 It is a great example how to generate a static webpage with my Xidel. Check out Makefile (which calls Xidel for all changed files), common.xq (which evals the next one) and style.xq.html (which contains the webpage layout).
 
from  https://github.com/benibela/site

awesome-small-web-publishing

 A curated list of awesome small web publishing tools and frameworks.

 

Awesome Small Web Publishing Awesome

A curated list of awesome small web publishing tools and frameworks.

Website Generation

· description ssg MW tags
archive.txt
-
php, markdown
bashblog single Bash script to create blogs x
shell





BeniBela site static webpage generation with Xidel x
xidel, make
Chyrp Lite
-
php, markdown
blosxom single perl file blogging system x
perl, html
Decker builds on the legacy of HyperCard and the visual aesthetic of classic MacOS - x hypercard, gui
Ed Jekyll theme for textual editors based on minimal computing principles x
jekyll, markdown
file.garden websites sown from files, directories, and .DS_Store x
js, DS_Store
Fish SSG ssg for Obsidian written in fish shell x
shell, pandoc, obsidian
gemkill ultralight ultrasimple static site builder x
gemtext, ruby
HOTGLUE visual tool for making web-pages - x php, gui
ikiwiki particularly flexible ssg with some dynamic features x
linux, gui
John Doe’s page
- x html
kiki tiny homepage construction kit with a small footprint -
php, markdown
Lichen the simplest possible CMS x
cgi, gemtext
Lichen-markdown simple and friendly CMS for making static websites x
markdown
lol ssg in chicken scheme x
chicken-scheme, markdown
m4-blog boilerplate for an m4 blog x
m4, pandoc
makesite static siteblog generator for python x
python, markdown
MiniMagAsm
-
cgi, web-assembly
MkDocs Project documentation with Markdown x
shell, markdown
mkws simple ssg x
shell, upphtml
monotone personal knowledge base system. markdown markup, runs in the browser -
markdown, js
mynah little wiki bird x
shell, pandoc, markdown
nini nini is the new ni x
go , htm
Oscean wiki engine x
uxntal, assembly
Oddµ static wiki generator x
markdown, wiki
panblog simple, minimal bash and pandoc-based ssg x
shell, pandoc, markdown
Pancake awful ssg with an awful logo and an awful acronym x
pandoc, racket
pancake.sh pandoc to markdown based note-archive x
shell, pandoc, markdown
Phraxos POSIX compliant ssg x
html
Portable thoughts single HTML document from a collection of Markdow x
php, markdown
Publii static site CMS application with an interface x
gui, html
Sergey the little ssg x
nodejs, markdown, html
sitegen tool for generating static html and gemtext pages x
zig, markdown, gemini, html
siteHX barebones ssg in haxe x
haxe, markdown, html
shite the little hot-reloadin' static site maker from shell x
shell, org-mode
soupault - static site management tool x
html, html, html
snowman ssg for SPARQL backends x
SPARQL, gotemplate
Untitled Static Site Generator – a multi-site ssg x
shell, pandoc
vienna Platonic Ideal of a simple and extensible ssg x
shell, htm
Void website creation tool -
php, markdown
web-bud small static website maker built with Node x
nodejs, markdown
Web Origami complementing HTML and CSS with concisely defined structure and content x
nodejs, markdown, csv
werc sane web anti-framework -
cgi
wg ssg written in Fennel x
fennel
Zine simple and opinionated tool to build your own magazine x
shell, markdown, toml

SSG (Static Site Generation), MW (Manual Work, as in writing html by hand)

Specialized Tools and Frameworks

· description tags
Faircamp ssg for audio producers dio, rust
Hyper 8 Video System ssg for video content video, rust
Kitten small Web development kit webapps, js, htmx
lowdown simple markdown translator markdown
pandoc universal document converter pandoc

Articles, Inspiration, and more Resources

from  https://codeberg.org/thgie/awesome-small-web-publishing

( https://codeberg.org/luckypoem/awesome-small-web-publishing)

------

 https://codeberg.org/thgie/archive.txt

( https://codeberg.org/luckypoem/archive.txt)