Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Adding support for JSP files #51

Open
AlexanderB1290 opened this issue Jan 26, 2017 · 0 comments
Open

Adding support for JSP files #51

AlexanderB1290 opened this issue Jan 26, 2017 · 0 comments

Comments

@AlexanderB1290
Copy link

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.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant