Arc Forumnew | comments | leaders | submit | squigg's commentslogin

you have to indent the line by 2 spaces or more to get it to show as code.

   like this line here

-----


adapted to include the submit button and "you said:" text...

  page <#>{(formlet <#>{input -> y}{submitButton("submit") -> z}</#> yields y) => fun (x) {page <a l:href="{page <#>{stringToXml("you said: " ++ x)}</#>}">Click Here</a>}}</#>
if i space it all out so it's nice and readable:

  page
  <#>
  	{(formlet <#>{input -> y}{submitButton("submit") -> z}</#> yields y)
  		=> fun (x) {
			page <a l:href="{page <#>{stringToXml("you said: " ++ x)}</#>}">Click Here</a>
	}}
  </#>

-----


Using a functional web language called Links, currently under development at Edinburgh university... http://groups.inf.ed.ac.uk/links/

  page <#>{input => fun (x) {page <a l:href="{page <#>{stringToXml(x)}</#>}">Click Here</a>}}</#>
All the XHTML is totally customisable if I want it to be, just keeping the code as short as possible here. Uses no libraries or anything, that's just the basic language.

-----