I’m trying to do something with our current Middleman site at my company and I’m not sure how to go about it. I’m relatively new to ruby but I have a background in web development using microsoft libraries.
The goal is to build a page with a form on it. This form will allow users to input a sample of their xml data and have it validate against an xsd which contains our feed specifications. To do this, I have a method in ruby that I’ve written which does xsd validation against xml using Nokogiri. It works in command line and I’ve create a page that works exactly how I want it using Sinatra, but our documentation site is all done using Middleman so I need to figure out how to put something like this into Middleman.
Unfortunately there doesn’t seem to be a lot of similar cases out there and I’m beginning to think that Middleman is only meant to be a static html generator and not have any backend functionality. I hope I’m wrong.