leader

Welcome to Efefomatic

View markdown

Efefomatic

Description

Efefomatic is a Flat File CMS providing:

Written in the proud spirit of the Bass o Matic 76, blending content and themes just the way you like it.


License

MIT License

Pronounciation

It's pronounced just like it's spelt
EFF EFF OH MATIC

Markdown

Markdown Enhancements

Extending Markdown

Just as I have made the above enhancements, you to easily add new, custom markdown features. At the top of efefomatic.php is an array of regular expressions. You can add more regular expressions here or directly in your application.

The following example simplifies the HTML KBD keystroke sequence. It converts the sequence `k'keystroke to <kbd>keystroke</kbd>. Note, there is no magic associate with the back-tick or single-quote. I just chose them because the sequence is unlikely to collide with other markdown features. You can choose whatever you want when you add features.


$efef_md[] = array( 'name' => 'kbd', 'from' => "/`k'(.+?)\s/s" , 'to' => "<kbd>$1</kbd>");
The following example is a little more complex and handles a keystroke combination. It converts the sequence `k'modifier+keystroke to <kbd>modifier</kbd>+<kbd>keystroke</kbd>.

The Lua Text Editor Documentation shows this feature in action.


$efef_md[] = array( 'name' => 'kbd2', 'from' => "/`k'(.+?)\+(.+?)'/s" , 'to' => "<kbd>$1</kbd>+<kbd>$2</kbd>");

Frameworks and Dependencies

What's a framework? Efefomatic is one PHP file. One file to rule them all.

OO

No thanks, I don't need the OO. OO on stackexchange

Installation


git clone https://github.com/jwrr/efefomatic.git
cp -rf efefomatic/example name-of-new-post
cd name-of-new-post
Add markdown file(s).

Examples

Limitations, Bugs and Issues

Oh yeah. There be bugs... but it's good enough for me.

View Markdown

View Markdown