Home
Insert
Update snippet 'Html dsl starters'
Title
Description
following http://vimeo.com/groups/97577/videos/97315970 to make my own html DSL
Source code
module Html let selfClosedTag name = sprintf "<%s/>" name let contentTag name content = sprintf "<%s>%s</%s>" name content name let emptyTag name= contentTag name System.String.Empty let heading n content = sprintf "h%d" n |> contentTag <| content heading 1 "Creating DSLs with F#"
Tags
html
html
Author
Link
Reference NuGet packages
If your snippet has external dependencies, enter the names of NuGet packages to reference, separated by a comma (
#r
directives are not required).
Update