This is my Blog.

It's full of opinions on a wide range of stuff.

Inline Markup Validation with Lift

Continuing with my series of articles about Lift, here's another hidden gem that not many people know about. Lift can automatically validate your markup so that any validation errors or warnings are high lighted to you as part of the development process. Pretty neat. Here's what you need to do to enable it:

Configure Boot

  class Boot {
    def boot {
      LiftRules.xhtmlValidator = Full(StrictXHTML1_0Validator)

Where of course you can replace StrictXHTML1_0Validator with any one of:


  // or subclass:
  // to provide your own custom implementation 

Find this and more great tips in my forthcoming book, Lift in Action


blog comments powered by Disqus