Skip to content

Adding support for JSP files #51

@AlexanderB1290

Description

@AlexanderB1290

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions