Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Elgg Customizable Markup Language
PHP
branch: master

Fetching latest commit…

Cannot retrieve the latest commit at this time

Failed to load latest commit information.
classes/Elgg/Ecml
languages Now creates full token array, allows plugins to process all tokens at…
tests
README.md
manifest.xml
start.php Now creates full token array, allows plugins to process all tokens at…

README.md

Elgg Customizable Markup Language

Overview

ECML is a lightweight markup language for inserting content into posts and comments. It uses square brackets to set off its tags like so:

[youtube src="http://www.youtube.com/watch?v=kCpjgl2baLs"]

Each tag consists of a keyword and an optional set of attributes. This plugin is responsible for parsing the tags. Other plugins handle rendering specific tags into HTML.

Developers

A plugin can register for a custom keyword by registering for the 'render:<keyword>', 'ecml' plugin hook where <keyword> is the name of the keyword. Any attributes are passed in the $params array for the plugin hook. The handler is expected to use the keyword and attributes to generate HTML and return it to replace the tag in the final web page.

Something went wrong with that request. Please try again.