News : The level of daily SPAM has reached insane proportions, all registrations are now manual. I ask you to send me an e-mail (john (at) murga (dot) org), to confirm that you want me to create an account for you.

Post Reply  Post Thread 
Any thoughts on a MurgaLua facebook page?
Author Message

Posts: 113
Group: Registered
Joined: Jul 2007
Status: Offline
Reputation: 0
Post: #1
RE: Any thoughts on a MurgaLua facebook page?

Well, I just hacked something together to facilitate the task of keeping a website up to date
just edit the config.lua to your needs: should contain a template for all pages (use @@keyword for keywords, which will be matched by gsub in the script).

config.post_title contains a template for the post title
config.post_body containts a template for the posts body
config.sections contains a table with all directories which should be looked through for converting posts to posts in the page
config.output should contain the name of the output directory, where the html's will be put.

now just make some section-directories, put in some markdown-coded .txt's, and run
murgaLua wman.lua config.lua

and there they are!

Feel free to use/ adapt /improve but don't blame me if it eats your dog Wink

Edit: Now checks whether output files are up to date before re-rendering them, should save time on big websites.



Attached File(s)
.zip File (Size: 6.73 KB / Downloads: 2)

This post was last modified: 02-15-2011 02:17 AM by jpjacobs.

02-15-2011 12:37 AM
Find all posts by this user Quote this message in a reply
Post Reply  Post Thread 

Messages In This Thread
RE: Any thoughts on a MurgaLua facebook page? - jpjacobs - 02-15-2011 12:37 AM

View a Printable Version
Send this Thread to a Friend
Subscribe to this Thread | Add Thread to Favorites

Forum Jump: