2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
|
# File 'lib/wirispluginengine/integration/getmathml.rb', line 2
def dispatch(request, response, provider, pb)
digest = nil
latex = provider.getParameter("latex", nil)
md5Parameter = provider.getParameter("md5", nil)
if (md5Parameter != nil && md5Parameter.length() == 32) digest = md5Parameter
else
String digestParameter = request.getParameter("digest")
if (digestParameter != nil) digest = digestParameter
end
end
r = pb.newTextService().getMathML(digest, latex)
return r
end
|