public string Generate() { string helpPage = ResourceHelper.GetEmbeddedResource(HELP_PAGE_RESOURCE_KEY); var serviceModel = GetServiceModelFromService(Service); TemplateParser template = new TemplateParser(helpPage, serviceModel, SyntaxOptions.HtmlSyntax); template.Parse(); return template.ToString(); }
public string Generate(bool minify = false) { string proxyTemplate = ResourceHelper.GetEmbeddedResource(PROXY_TEMPLATE_RESOURCE_KEY); var serviceModel = GetServiceModelFromService(Service); TemplateParser template = new TemplateParser(proxyTemplate, serviceModel, SyntaxOptions.JavaScriptSyntax); template.Parse(); var source = template.ToString(); if (minify) source = JavaScriptCompressor.Compress(source); return source; }