Skip to content
Permalink
Browse files

feat: add multi-root

  • Loading branch information...
dmelikhov
dmelikhov committed Feb 25, 2019
1 parent 732f769 commit e9d2bbb06826048676397b708ee77cf968088371
Showing with 3,621 additions and 5 deletions.
  1. +3 −0 example/a/a.njk
  2. +3 −0 example/b/b.njk
  3. +1 −0 example/dist/bundle.js
  4. +1 −0 example/index.js
  5. +17 −0 example/index.njk
  6. +3,530 −0 example/package-lock.json
  7. +13 −0 example/package.json
  8. +27 −0 example/webpack.config.js
  9. +7 −1 lib/loader.js
  10. +19 −4 lib/njk.js
@@ -0,0 +1,3 @@
<section class="a">
<div class="a__container">Example a</div>
</section>
@@ -0,0 +1,3 @@
<section class="b">
<div class="a__container">Example b</div>
</section>

Some generated files are not rendered by default. Learn more.

@@ -0,0 +1 @@
const templateA = require('./index.njk');
@@ -0,0 +1,17 @@
<!DOCTYPE html>
<html lang="ru">
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="format-detection" content="telephone=no">
<meta name="format-detection" content="address=no">
<title>Example</title>
</head>
<body>
{% include "a.njk" %}
{% include "b.njk" %}
{% include "a.njk" %}
{% include "b.njk" %}
</body>
</html>

0 comments on commit e9d2bbb

Please sign in to comment.
You can’t perform that action at this time.