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

Is there template syntax support for JetBains PhpStrom/WebStorm? #558

Open
IAkumaI opened this issue Jul 25, 2019 · 1 comment
Open

Is there template syntax support for JetBains PhpStrom/WebStorm? #558

IAkumaI opened this issue Jul 25, 2019 · 1 comment

Comments

@IAkumaI
Copy link
Contributor

IAkumaI commented Jul 25, 2019

JetBains is a popular IDE. Is there any plugin for derbyjs-template syntax support?

@IAkumaI
Copy link
Contributor Author

IAkumaI commented Aug 22, 2019

Well. I created hack for <derby-Some> tags. Maybe it will be usefull for someone else.

let oldCOmpiler = app.compilers['.html'];

app.compilers['.html'] = function (file, filename) {
    file = file.replace(/(<\/?)derby-(\w+)/g, '$1$2:').replace(/<\/\w+:>/g, '');
    return oldCOmpiler(file, filename);
};

Templates may be wrapper into tag and PhpStorm will not alert errors.

<derby-Body>
    <div>Some html here</div>
</derby-Body>

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