jwvdiermen/grunt-include-source

Adding support for JSP files

Opened this issue · 0 comments

I am currently working on a project with JSP files as index page. And on other projects where we used include source - everything work fine.
I updated the objects: parsers, endMarkerParsers and templates as follows:

  • parsers added a row: 'jsp': parseSource('HTML', /<!---?\sinclude:([\s\S]?)-?--\s*>/gi)
  • endMarkerParsers added a row: 'jsp': findEndMarker('HTML', /<!---?\s*/include\s+-?-->/i)
  • templates added a row:
    'jsp':{
    'js': '<script type="text/javascript" src="{filePath}"></script>',
    'css': ''
    }
    And it worked! Need to point out that I use the HTML syntax in this JSP file.