mirror of
https://github.com/jquery/jquery-ui.git
synced 2026-02-05 00:54:57 -05:00
documentation build: don't escape embedded html; first stab at option examples
This commit is contained in:
@@ -67,19 +67,7 @@
|
||||
</xsl:template>
|
||||
|
||||
<xsl:template name="break">
|
||||
<xsl:param name="text" select="." />
|
||||
<xsl:choose>
|
||||
<xsl:when test="contains($text, '

')">
|
||||
<xsl:value-of select="substring-before($text, '

')" />
|
||||
<br /><br />
|
||||
<xsl:call-template name="break">
|
||||
<xsl:with-param name="text" select="substring-after($text, '

')" />
|
||||
</xsl:call-template>
|
||||
</xsl:when>
|
||||
<xsl:otherwise>
|
||||
<xsl:value-of select="$text" />
|
||||
</xsl:otherwise>
|
||||
</xsl:choose>
|
||||
<xsl:value-of select="." disable-output-escaping="yes" />
|
||||
</xsl:template>
|
||||
|
||||
<xsl:template name="option">
|
||||
@@ -91,22 +79,14 @@
|
||||
</div>
|
||||
<div class="param-details">
|
||||
<p><xsl:value-of select="desc"/></p>
|
||||
<!--
|
||||
<h4>Code sample:</h4>
|
||||
<code>
|
||||
Here be code samples once added to the exporter script.<br />
|
||||
$("#dialog").dialog({<br />
|
||||
  buttons: {<br />
|
||||
    'Delete all items in recycle bin': function() {<br />
|
||||
      $(this).dialog('close');<br />
|
||||
    },<br />
|
||||
    Cancel: function() {<br />
|
||||
      $(this).dialog('close');<br />
|
||||
    }<br />
|
||||
  }<br />
|
||||
});
|
||||
</code>
|
||||
-->
|
||||
<!-- TODO select all examples -->
|
||||
<xsl:for-each select="following-sibling::example[1]">
|
||||
<h4>Code sample:</h4>
|
||||
<p><xsl:value-of select="desc" disable-output-escaping="yes"/></p>
|
||||
<code>
|
||||
<xsl:value-of select="code"/>
|
||||
</code>
|
||||
</xsl:for-each>
|
||||
</div>
|
||||
</div>
|
||||
</xsl:template>
|
||||
|
||||
Reference in New Issue
Block a user