Browse Source

Fix bug with EJS on grunt-built instances (#192)

Fix EJS syntax being incorrectly escaped by the build step.
Gaël Métais 8 năm trước cách đây
mục cha
commit
b433736241
2 tập tin đã thay đổi với 6 bổ sung2 xóa
  1. 5 1
      Gruntfile.js
  2. 1 1
      front/src/main.html

+ 5 - 1
Gruntfile.js

@@ -243,7 +243,11 @@ module.exports = function(grunt) {
             build: {
                 options: {
                     base: '.tmp',
-                    method: 'append'
+                    method: 'append',
+                    unescape: {
+                        '&lt;': '<',
+                        '&gt;': '>'
+                    }
                 },
                 files: {
                     './front/build/main.html': ['.tmp/views/*.html']

+ 1 - 1
front/src/main.html

@@ -26,7 +26,7 @@
     <link rel="preconnect" href="https://api.github.com">
     <link rel="dns-prefetch" href="https://api.github.com">
 
-<head>
+</head>
 
 <body ng-app="YellowLabTools">
     <div id="header"><h1>Yellow Lab <span class="icon-lab"></span> Tools</h1></div>