Snippets tagged html

  • WebSharper Hello World

    This sample implements "Hello, world!" as a WebSharper application. It demonstrates how to compose HTML/XML using combinators, how to dynamically create a button with a handler and how to update an existing DOM element.

    4 people like this

    Posted: 10 years ago by Tomas Petricek

  • HTML File Type

    Discriminated unions to represent a HTML file.(not completely)

    3 people like this

    Posted: 9 years ago by Gab_km

  • DSL for constructing HTML

    Just another DSL for creating HTML in F#. This DSL attempts to have nice syntax using curly brackets (F# computation expression blocks) for nesting. It does not use other keywords like `yield` (to keep the syntax as non-intrusive as possible), but that means the implementation relies on mutation. I think there could be nicer implementation using automatic quoting in F# 3.0.

    17 people like this

    Posted: 8 years ago by Tomas Petricek

  • Html dsl starters

    following http://vimeo.com/groups/97577/videos/97315970 to make my own html DSL

    1 people like this

    Posted: 7 years ago by Brandon Dimperio (@MaslowJax)

  • Chart NuGet package downloads

    Quick script using FsLab that visualizes the aggregate number of downloads of a NuGet package over time, using the HTML type provider to get the data from www.nuget.org.

    2 people like this

    Posted: 5 years ago by Tomas Petricek

  • Strip HTML tags from a string

    Shows a recursive means of filtering out simple HTML tags from a string. This is ultimately a simple FSM with state transitions implemented by recursive invocations and a bool flag (in this simple case).

    0 people like this

    Posted: 5 years ago by Hugh Gleaves

  • Poor man's HTML renderer

    Takes some HTML, outputs some plaintext. Not tail recursive, not efficient, but got the job done for my use case (had a product feed where the descriptions were HTML, but I needed plaintext).

    3 people like this

    Posted: 2 years ago by Nat Elkins

  • Extract script blocks from html page

    This module extracts all the blocks out of an html page's header. This can be useful if you are writing tools to merge all the js for future minifaction, or for otherwise manipulating the files.

    0 people like this

    Posted: 2 months ago by devshorts