Created
January 31, 2011 08:36
-
-
Save avernet/803780 to your computer and use it in GitHub Desktop.
XForms Hello, in Haml
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
%xh:html{ "xmlns:xh" => "http://www.w3.org/1999/xhtml", | |
"xmlns:xf" => "http://www.w3.org/2002/xforms"} | |
%xh:head | |
%xh:title XForms Hello | |
%xf:model | |
%xf:instance | |
%first-name | |
%xh:body | |
%xh:p | |
%xh:i | |
This example is described in details in the | |
%xh:a(href="/doc/intro-tutorial") Orbeon Forms Tutorial | |
%xf:input(ref="/first-name" incremental="true") | |
%xf:label Please enter your first name | |
%xh:p | |
%xf:output(value="if (normalize-space(/first-name) = '') then '' else concat('Hello, ', /first-name, '!')" ) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment