public string GenerateReference(SystemReference reference) { var relativePath = reference.RelativePath(true); var wait = reference.Wait ? ".wait()" : ""; return reference.Name.EndsWith("-module") ? string.Format(".script(\"/hotglue.axd{0}&name={2}\"){1}", relativePath, wait, string.Join("&name=", reference.ReferenceNames)) : string.Format(".script(\"/hotglue.axd{0}\"){1}", relativePath, wait); }
public string GenerateReference(SystemReference reference) { var relativePath = reference.RelativePath(true); return reference.Name.EndsWith("-module") ? string.Format("<script src=\"/hotglue.axd{0}&name={1}\"></script>", relativePath, string.Join("&name=", reference.ReferenceNames)) : string.Format("<script src=\"/hotglue.axd{0}\"></script>", relativePath) + Environment.NewLine; }