CloudyKit / jet

Jet template engine
Apache License 2.0
1.26k stars 106 forks source link

import calls can trigger unintelligible error messages #134

Closed rmzg closed 4 years ago

rmzg commented 4 years ago

If you place a import call after some html in your template:

<html>
  <head>
     {{import "something/somewhere.jet"}}

You get an error like: unexpected token <import> on operand which is very tricky to relate to the actual problem.

Also it doesn't seem to be documented that {{import}} has to go at the top of the file.