Web Dev in Haskell with Fn PART 3

This session

  • HTML responses!
  • JSON responses!

HTML responses

with Lucid

our app so far

just text :(

okhtml

that's... one way to do it

injection!!!

localhost:3000/name=<script>alert("pwned")</script>

alternatives

ginger

Heist

Blaze

lucid

Lucid

how it works

writing HTML with Lucid

example

write a page!

ok lets use this html...

uh oh Fn doesn't support lucid

fixing

making Fn support

html ()

making Fn support

static serve

how do I serve images and js and stuff?

write more pages!!

Forms

with Digestive Functors

www.github.com/emhoracek/fntutorial

fnhaskell.com/tutorial

fnhaskell.com

Web Dev in Haskell with Fn: Part 3

By emhoracek

Web Dev in Haskell with Fn: Part 3

  • 1,131