4 ms·
bash and wget. Simple example: for f in `ls *.php`; do wget http://myexample.com/$f -O $f.html; done; rename 's/\.php\.html/.html/' * sed -i 's/\
by ComputerGuru 14y ago
bash and wget.
Simple example:
for f in `ls *.php`; do wget http://myexample.com/$f -O $f.html; done;
rename 's/\.php\.html/.html/' *
sed -i 's/\.php/.html/g' *.html
- keithpeter 14y agoBash, markdown and hope. Sample... http://sohcahtoa.org.uk/pages/publish-a-web-site-with-bash-scripts.html http://sohcahtoa.org.uk/pages/publish-a-web-site-with-bash-s... it is horrid, but it works for me. Seriously, how about a voting option for something like 'homebrew'?
- nkuttler 14y agoKinda. When I need a 'static' site I just use whichever CMS/framework is best and wget --mirror the output.
- joeld42 14y agoThat sounds horrible. All of the added complexity of a heavyweight framework without any of the advantages. Most frameworks have an option to cache the output if you want to go that route, then you'll get the performance of a static site without losing the flexibility.