<extension>
  <title>MindTouch Spoiler Extension</title>
  <label>Spoiler</label>
  <copyright>Copyright (c) 2006-2010 MindTouch Inc.</copyright>
  <description>This extension contains a function for embedding spoiler tags.</description>
  <uri.help>http://developer.mindtouch.com/App_Catalog/Spoiler</uri.help>

  <function>
    <name>spoiler</name>
    <description>Insert a spoiler tag that hides sensitive text until the mouse hovers over it.</description>
    <param name="text" type="str">Spoiler text to hide.</param>
    <return>
      <html xmlns:eval="http://mindtouch.com/2007/dekiscript">
        <body>
          <span style="color: #000; background-color: #000" onmouseover="this.style.color='#FFF';" onmouseout="this.style.color=this.style.backgroundColor='#000'"><eval:expr>args.text</eval:expr></span>
        </body>
      </html>
    </return>
  </function>
</extension>
