This repository has been archived by the owner on Jan 2, 2023. It is now read-only.
generated from nvim-treesitter/module-template
-
Notifications
You must be signed in to change notification settings - Fork 66
Add EJS? #139
Comments
Can you paste an example |
Sorry delay.. Sure, in this example I'm updating the title: <head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<meta http-equiv="X-UA-Compatible" content="ie=edge">
<title><%= pageTitle %></title>
<link rel="stylesheet" href="/css/main.css">
<link rel="stylesheet" href="/css/forms.css">
<link rel="stylesheet" href="/css/product.css">
</head> Here, it's a full file (404.ejs) with 3 different includes: <%- include('./includes/head.ejs') %>
</head>
<%- include('./includes/navigation.ejs') %>
<body>
<h1>Page Not Found!</h1>
<%- include('./includes/end.ejs') %> Here, we have two variables <body>
<h1><%= kindOfDay %> </h1>
<ul>
<% itemList.forEach( el => { %>
<li><%= el %> </li>
<% }) %>
</ul>
</body> |
nvim-treesitter needs to add the embedded_template language (no checkmark): https://github.com/nvim-treesitter/nvim-treesitter#supported-languages |
Sign up for free
to subscribe to this conversation on GitHub.
Already have an account?
Sign in.
Hello,
Is it possible to add EJS chars for HTML lang? Like "<%" and "<%=" for opening and "%>" for closing. I tried myself but no luck there.
Thanks
The text was updated successfully, but these errors were encountered: