tera icon indicating copy to clipboard operation
tera copied to clipboard

error while importing

Open sqrt0x opened this issue 2 years ago • 2 comments

sqrt0x avatar Feb 25 '24 22:02 sqrt0x

What is the error? Please provide additional detail. Thank you.

j1mc avatar Mar 01 '24 18:03 j1mc

I assume that this is the error they're getting

* Failed to parse "\\\\?\\C:\\Users\\<user>\\RustroverProjects\\hyper-text-stitcher\\test\\templates\\base.html"                                    
  --> 21:5                                                                                                                                         
   |                                                                                                                                               
21 |     {% import "macros.html" as macros %}                                                                                                      
   |     ^---                                                                                                                                      
   |                                                                                                                                               
   = unexpected tag; expected end of input, a macro definition tag (`{% macro my_macro() %}`, or some content     

Edit: If this is indeed the issue they are experiencing, it's worth noting that the error occurs when macro imports are anywhere other than the top of the file.

RedstoneParadox avatar Mar 20 '24 17:03 RedstoneParadox