Beispiel #1
0
 def lint(self, request):
     # With the "squelching" the multi-language linter does to pull
     # <% and %>-like tokens out of the lint input stream, there's no
     # need to map all Ruby code to RHTML
     if rails_role_from_path(request.koDoc.displayPath):
         TPLInfo = list(self._tplPatterns) + [{"supportRERB": True}]
     else:
         TPLInfo = self._tplPatterns
     return UnwrapObject(self._html_linter).lint(request, TPLInfo=TPLInfo)
Beispiel #2
0
 def lint(self, request):
     # With the "squelching" the multi-language linter does to pull
     # <% and %>-like tokens out of the lint input stream, there's no
     # need to map all Ruby code to RHTML
     if rails_role_from_path(request.koDoc.displayPath):
         TPLInfo = list(self._tplPatterns) + [{"supportRERB": True}]
     else:
         TPLInfo = self._tplPatterns
     return UnwrapObject(self._html_linter).lint(request, TPLInfo=TPLInfo)