2 users online. Create an account or sign in to join them.Users

Search

A new extension, “Zen Coding” is now available for download. Comments and feedback can be left here but if you discover any issues, please post it on the issue tracker.

Examples

tm>par+if

is a shortcut for:

<xsl:template match="" mode="">
    <xsl:param name="" select=""/>
    <xsl:if test="">

    </xsl:if>
</xsl:template>

tn>wh>call>wp*3

is a shortcut for:

<xsl:template name="">
    <xsl:when test="">
        <xsl:call-template name="">
            <xsl:with-param name="" select=""/>
            <xsl:with-param name="" select=""/>
            <xsl:with-param name="" select=""/>
        </xsl:call-template>
    </xsl:when>
</xsl:template>

tm>choose+

is a shortcut for:

<xsl:template match="" mode="">
    <xsl:choose>
        <xsl:when test="">

        </xsl:when>
        <xsl:otherwise>

        </xsl:otherwise>
    </xsl:choose>
</xsl:template>

form>fset>label*3>input:t.some.cool.classes

is a shortcut for:

<form action="">
    <fieldset>
        <label for="">
            <input type="text" name="" id="" class="some cool classes"/>
        </label>
        <label for="">
            <input type="text" name="" id="" class="some cool classes"/>
        </label>
        <label for="">
            <input type="text" name="" id="" class="some cool classes"/>
        </label>
    </fieldset>
</form>

Love it! Thanks! Now page template and utility editor seems to be much more usable

Good work. Also It would be great to run this on e or TextMate.

Good work. Also It would be great to run this on e or TextMate.

Unfortunately, the TextMate Bundles are using an incomplete zen_settings.py, as the original one seems to support it.

Thank you guys. For anyone looking for a comfortable way to write HTML/XSLT code without leaving the browser window, Zen Coding is quite a reasonable compromise. I guess some people might find it useful as text formatter too, even if Zen Coding can’t do the job all alone. That’s why I’m taking into account the possibility of a merge with some other formatters out there like Markdown or Textile. Does it sound good?

Note: I moved all the examples to the first message of this thread, as it seems like XML escaping is a bit “aggressive” inside the Description field of this site’s Extensions section.

For anyone looking for a comfortable way to write HTML/XSLT code without leaving the browser window, Zen Coding is quite a reasonable compromise.

Indeed. This is a great extension!

Zen Coding updated to version 1.1 on 1st of January 2010

I guess some might find it useful as text formatter too, even if Zen Coding can’t do the job all alone. That’s why I’m taking into account the possibility of a merge with some other formatters out there like Markdown or Textile.

In the end I went for another approach:

Version 1.1: A new setting should now appear in your preferences listing all textarea fields from your workspace. By choosing one or more of them, you will tell the extension which fields Zen Coding has to be enabled on.

Attachments:
zencoding3.png

Nice extension, will have to check this one out.

Zen Coding updated to version 1.1.1 on 12th of August 2010

Zen Coding updated to version 1.2 on 31st of August 2010

Create an account or sign in to comment.

Symphony • Open Source XSLT CMS

Server Requirements
  • PHP 5.2 or above
  • PHP's LibXML module, with the XSLT extension enabled (--with-xsl)
  • MySQL 4.1 or above
  • An Apache or Litespeed webserver
  • Apache's mod_rewrite module or equivalent

Compatible Hosts