Blog articles of Community for F#

0
comment
comment
on 4/15/2012 7:48 PM
We have been working hard to bring you WebSharper 2.4 Q2 - and today we are happy to announce the availability of the the first beta (2.4.46).
We will be doing a detailed change log and announcement in the coming days, so stay tuned. One of the most significant changes in this release is dynamic templating - a feature that enables authoring template-based web applications whose template(s) can be changed runtime without requiring re-compilation.
Dynamic templates are not only flexible but also come with a couple significant enhancements over the static templating available in earlier releases. For instance, you can tune how and when your templates get served and instantiated, whether placeholders act as containers or direct content holes, and what type of content can go into them.
For instance, here is a dynamic template in F#:
If you find any bugs, please get in touch at the WebSharper contact page, post them in the public BitBucket issue tracker, or simply post them here.
Have fun!
We will be doing a detailed change log and announcement in the coming days, so stay tuned. One of the most significant changes in this release is dynamic templating - a feature that enables authoring template-based web applications whose template(s) can be changed runtime without requiring re-compilation.
Dynamic templates are not only flexible but also come with a couple significant enhancements over the static templating available in earlier releases. For instance, you can tune how and when your templates get served and instantiated, whether placeholders act as containers or direct content holes, and what type of content can go into them.
For instance, here is a dynamic template in F#:
let TemplateLoadFrequency = Content.Template.PerRequest
type Page =
{
Title : string
Head : list<Content.HtmlElement>
HeadStyles : list<Content.HtmlElement>
Slider : list<Content.HtmlElement>
Breadcrumbs : list<Content.HtmlElement>
Main : list<Content.HtmlElement>
}
let MainTemplate =
let path = HttpContext.Current.Server.MapPath("~/static/my-template.html")
Content.Template<Page>(path, TemplateLoadFrequency)
.With("title", fun x -> x.Title)
.With("head", fun x -> x.Head)
.With("headStyles", fun x -> x.HeadStyles)
.With("slider", fun x -> x.Slider)
.With("breadcrumbs", fun x -> x.Breadcrumbs)
.With("main", fun x -> x.Main)
You can use this template to construct sitelet pages as follows: let Site =
Sitelet.Content "/" Action.Home
<| (Content.WithTemplate MainTemplate <| fun ctx ->
{
Page.Title = "My title"
Page.Head = []
Page.HeadStyles = []
Page.Slider = []
Page.Breadcrumbs = MyBreadcrumbsFor ctx action
Page.Main =
[
H1 [Text "This is where your main content goes"]
]
})
The beta release also ships support for .NET 4.5, and should work if you have Windows 8 and Visual Studio 2011 Beta.If you find any bugs, please get in touch at the WebSharper contact page, post them in the public BitBucket issue tracker, or simply post them here.
Have fun!
0
comment
comment
on 4/15/2012 3:10 PM
It wasn’t long after college that I found myself blogging about the technology I was using on a regular basis. I have pretty good writing skills and am damn good with the code so soon after I was easily breaking 10K hits per post. Having a platform to share my ideas and knowledge was exhilarating [...]
0
comment
comment
on 4/12/2012 7:26 PM
The next F# New York City Meetup is now scheduled...
Microsoft Offices, 6th floor, 1290 Avenue of the Americas, between 51st and 52nd Streets, New York, NY (map)
Tomas Petricek on F# applications - From Domain Model to User Interface
Wednesday, April 25, 2012, 6:30 PM
between 51st and 52nd StreetsNew York, NY">
<div id="event-where-suggest" class="suggested-by">F# is a great language for developing business logic of an application, but it can be also used for elegantly expressing user interactions. In t[...]
0
comment
comment
on 4/11/2012 11:55 PM
In this post we are going back to the primitive. No it’s not about the same named song by Soulfly, (which incidentally does contains F# notes) but a return
to thread synchronisation primitives and their asynchronous counterparts.
We are going to be looking at an asynchronous version of the ManualResetEvent. This was
recently covered by Stephen Toub on the pfx team blog. We will be taking a slightly different view on
this as we will be using asynchronous workflows which will give us nice idiomatic usage[...]
0
comment
comment
on 4/11/2012 8:31 PM
Last year, my wonderful peers in Microsoft Research developed the first versions of TouchDevelop, a touch-based programming environment.
You can now find out all about TouchDevelop at the one big URL:
www.touchdevelop.com
and follow them on Twitter at @touchdevelop.
Well done to the whole TouchDevelop team, and to Microsoft Connections for supporting this project. I'm sure many great things are coming for TouchDevelop from here!
About this group
- Founded: 7/22/2011
- Owners: Loic Denuziere, Adam Granicz, Ryan Riley
- Members: 9
- Past events: 23
- Upcoming events: 1 Log in to join
Featured group
| New England F# User Group 4 past events |
Latest blog articles by c4fs (see all)
- Einstein’s Riddle and Closed Questions
- WebSharper 2.4 Q2 available
- Cross Posted: Online Training Course for F#
- F#, MSTest, and FsUnit 1.1.0.0
- You Might As Well Use Globals
- Back to the Primitive II
- Updated version of "TrueSkill Through Time" Bayesian Inference Code
- More Hadoop+F# Goodness
- Force-Directed Graph Layout in HTML5 with F# and WebSharper
- WebSharper 2.4 Q2 Beta out
- What Microsoft MVP means to me
- Next F# New York City Meetup: Tomas Petricek on F# applications - From Domain Model to User Interface
- Back to the Primitive
- TouchDevelop, from Microsoft Research
- Is Javascript code always so full of bugs?
- F# Event Madness, Spring 2012 Edition
- Why The Defaults Matter
- A Nice Addition to the Empty WPF F# Template
- I'm Speaking at the Big Picture Seminar at NICTA, Canberra, Tomorrow
- Next F# Seattle Meetup this Monday, March 26
- F# on Channel 9: Donna Malayeri - F# 3.0 - Information Rich Programming
- F# as a Platform for Quantitative Finance: Thursday, March 22, SkillsMatter, London
- Presentation - CoffeeScript: Good, Bold, and with Sugar
- Asynchronous client/server in F# (QCon 2012)
- Black-Scholes Taste Test
- The Tech Support Effect
- The Functional Nature of Web API
- F# and ASP.NET Web API
- Visual F# 3.0 Beta now available in Visual Studio 11!
- Why I Don’t Care If You Think Functional Programming Matters
- Razor Added to the F#/C# ASP.NET MVC 3 Internet Project Template
- ExpectThat with CoffeeScript, Zombie, Mocha, and Node
- FSharp Dataflow agents III
- Reasons to Come to Functional Programming eXchange 2012
- You Might As Well Make All Your Class Members Public
- Next Seattle F# Meetup, Tuesday Feb 21, 2012
- Functional Programming eXchange 2012, March 16, 2012, London
- Another Way To Kick-start F# WPF Apps
- F#/C# Contract Position for Silverlight/HTML 5 User Interface Development at Microsoft Research, Cambridge, UK
- Testing a jQuery Plugin with ExpectThat and Mocha
- From Iteratees to Conduits
- Undertone – Programmable music in F#
- Configuring Sublime Text 2 To Work With FSharp
- First F# Seattle Meetup This Saturday, Redmond
- London F# Meetup Group this Thursday: Pacman Kata
- Making F# Windows Phone Development a Little Easier
- F# 3.0 at TechDays France, Feb 7, Paris!
- F#, WebSharper, JavaScript, HTML5, Mobile etc.
- F# Training in London in January and February: Functional Programming in .NET and Real World F# Programming
- Microsoft Releases Local, Distributed and Cloud Numerics Library, with F# Samples
- Musicians, Mechanics, and Mathematicians
- developerFusion Article: An Introduction to FSharpx
- Come and work with the F# group at Microsoft Research in Cambridge!
- Some F# Programming Jobs in London
- Why do most programmers work so hard at pretending that they’re not doing math?
- F# courses and talks (Winter 2012 and beyond...)
- HTTP and Functional Programming
- Introducing ExpectThat: A CoffeeScript Assertion Library
- Wrapping Build Tasks With FSharp
- Web Architecture Done Right
- Regions and navigation bar for F# in Visual Studio
- A New Web for .NET: FubuMVC and Chad's response to AR Considered Harmful
- Programming Rules Of Thumb
- Announcing FsUnit 1.0
- 2011 In Retrospect: A Year of Writing F# Professionally
- Porting Bryan's Erlang Function to F#
- Announcing an F# Meetup Group in Seattle
- 6 Month Contract Position at MSR Cambridge: Cross-Platform and Web-Delivered Data-Rich Programming with F# 3.0
- Enhancements to FsUnit (version 0.9.1.1)
- Building an ASP.NET MVC 4 Solution with F# and C#
- Getting Setup for JavaScript Testing with Pavlov
- New York City F# Meetup Group: High Performance F#, in .NET and on the GPU with Jack Pappas, Tuesday, November 29, 2011, 6:30 PM
- F# Math (IV.) - Writing generic numeric code
- Building F# Solutions in Visual Studio 11
- F# Math (III.) - Defining custom numeric types
- F# agents with timeouts
- Updates to the August 2011 F# 2.0 Compiler Code Drop
- StatFactory: FCore maths & statistics library, designed for use with F#
- Tonight at F#unctional Londoners: Byron Cook: Proving program termination with F#
- A Pinch of CoffeeScript Sugar - Part 1
- F# Silverlight Library Template in Visual Studio 11
- New F# Windows Phone Library Project Template
- F# Math (II.) - Using matrices for graph algorithms
- MonoDevelop User Voice: Vote for Full F# Support
- A Coder Interview with Dan Mohl
- The Combinator Approach to Programming Domain Specific Languages with F#
- Job at MSR Cambridge: Infer.NET
- F# Math (I.) - Numeric types in PowerPack
- F# Math - Numerical computing and F# PowerPack
- Progressive F# Tutorials at SkillsMatter, London, Thu-Fri This Week
- Type Systems are Asserts
- Type Systems are Asserts
- Calling F# Libraries from Metro Style Apps
- Potential Post-PhD and Internship Positions in Web-Delivered, Data-Rich Cloud Programming
- How to let other teams at Microsoft know how they can support F# better
- Two New F# 3.0 Type Provider Related NuGet Packages
- Please submit, vote on and discuss F# and Visual Studio features
- Some thoughts about Google’s new Dart programming language
- OOP to me means only messaging local retention...
- OOP to me means only messaging local retention…
- Iteratee in F# - Part 1
- Iteratee in F# – Part 1
- Planning for Functional.net 2012
- Authoring Type Providers with the TypeProviderDSL from FSharpx
- Today's the day to say it.... I'm an Apple II kid
- F# 2-Year Contract Position for Biological Modelling Language Development
- The MSR Cambridge Research Games Team invite you to play Blotto
- F# presentation - F# Eye for the C# Guy
- Advice for Getting Started with F#
- MSDN Magazine Article: Authoring an F#/C# VSIX Project Template
- New F#/C# ASP.NET MVC 3 Template
- A Simple AppSettings Type Provider
- For whom the proteins fold
- Record Linkage Algorithms in F# – Extensions to Jaro-Winkler Distance (Part 3)
- WebSharper 2.3 Q3 released
- Presentation: Dialing Up with F# and Windows Phone 7
- Imperative Pseudocode to Pure Functional Algorithm with Gale-Shapely and F#
- First example of a very simple type provider
- F# Type Providers - Querying StackOverflow
- WebSharper at CUFP 2011
- Advantages of CoffeeScript When Working with jQuery Templates
- A few thoughts on build and Windows 8
- Record Linkage in F# – Token Matching, Stable Marriages and the Gale-Shapley algorithm
- WP7 AccelerometerProxy in F#
- Functional Programming eXchange 2012: Call for abstracts
- F#, RavenDB and PicoMvc – Creating an Autocomplete – The ETL
- See My Stack Overflow Dev Days Talk
- Getting Started with the F# PowerPack - Part 4
- F#, RavenDB and PicoMvc – Creating an Autocomplete – Scenario and Project Setup
- Interested in presenting at a conference on functional…
- Organizing Code Files
- Calculating when the 1000th XKCD will appear
- The iteratee is continuing to hang me up…
- Unit Testing a jQuery Plugin with CoffeeScript and Pavlov
- Upcoming September 2011 course has been moved to 1 November 2011
- F# courses and talks (Autumn 2011)
- Adding NuGet Support to F# Interactive
- Getting Started with the F# PowerPack - Part 3
- DevLink: Getting Started with F# Web Development
- Getting Started with the F# PowerPack - Part 2
- Chinese Chess: An Exercise in Upgrading
- Another CoffeeScript and jQuery UI Example
- Small Revamp to strangelights.com and Free Chapter of Beginning F#
- Programming with F# asynchronous sequences
- Real-World F# Articles on MSDN
- Speaking at Stack Overflow Dev Days and Progressive F# in autumn 2011
- Which do you prefer for Frank routing gist...
- State Machines...
- HTTP Parsing...
- Asynchronous I/O...
- State Machines…
- Jon Skeet's LINQ to Objects...
- Separate team quoted one man year. Took ...
- More WebSharper talks in February
- Come and see me and other F# guru’s in Seattle!
- Sencha Touch for WebSharper available
- Windows Phone 7 Accelerometer and F#
- New WebSharper extensions available
- WebSharper 2.1 Beta 5 available
Event tags for this group
- f# × 22
- web × 5
- teaching × 3
- http × 2
- testing × 2
- functional × 2
- templates × 2
- websharper × 2
- units of measure × 1
- fpish × 1
- single page application × 1
- servicestack × 1
- pit fw × 1
- monorail × 1
- type providers × 1
- open source × 1
- compiler × 1
- koans × 1
- bistro × 1
- introduction × 1
- metaprogramming × 1
- enterprise × 1
- tickspec × 1
- server × 1
- agents × 1
- tcp × 1
Group tags
- f# × 18
- clojure × 7
- functional × 7
- haskell × 6
- scala × 5
- c# × 3
- websharper × 3
- .net × 2
- erlang × 2
- javascript × 2
- skillsmatter × 2
- alt.net × 1
- async × 1
- blazehtml × 1
- coffeescript × 1
- continuous delivery × 1
- fractureio × 1
- html × 1
- html5 × 1
- jquery × 1
- lisp × 1
- load testing × 1
- ocaml × 1
- package management × 1
- reactive extensions × 1
- restful × 1
- rx × 1
- scalability × 1
- scheme × 1
- tdd × 1
- unit testing × 1
- user group × 1
- web × 1
- web services × 1
![]() |
Copyright (c) 2011-2012 IntelliFactory. All rights reserved. Home | Products | Consulting | Trainings | Blogs | Jobs | Contact Us | Built with WebSharper |

