Building a blog engine in F# with WebSharper
When it comes to developers blogging, expectations are high and many find that it’s a worthwhile effort to develop simple scripts, tools and even full engines to enhance and support blogging about their favorite language. In this hands-on session, you will implement your own blog engine from scratch in just a few hundred lines of F# code using WebSharper, and use its static file generation capabilities to generate blog pages that you can deploy directly into GitHub Pages or host in any web server. The resulting blog can easily be styled using WebSharper’s powerful templating capabilities, and even automated to rebuild when you commit new content or blog articles in your blog repository. You will also learn about adding dynamic functionality to your generated blog pages, or even turning your blog engine to a hosted solution that provides further capabilities as well. No more searching for blog engines with the right features, code what you need and enjoy!
Outline/Structure of the Tutorial
- Getting started with WebSharper
- Introduction to sitelets, a type-safe abstraction for server-side functionality in full-stack WebSharper applications
- Static content/site generation from sitelets
- Basics of dealing with markdown
- HTML templating with WebSharper
- Putting everything together
- Advanced topics - switching to a hosted solution, adding CMS capabilities
Attendees will be able to develop HTML applications in F#, implement a simple blog engine with generated pages for each article, seamlessly incorporate dynamic content, and understand where to add their customizations if needed.
Prerequisites for Attendees
Familiarity with markdown as a document format, F# and WebSharper are a plus.