'import tag giving error in jinjava template

I'm trying to import a macro into a template. I have defined the import tag as follows:

{% import 'props.tpl' as props %}

Both files are in the same folder but getting the below error in java :

FatalTemplateErrorsException: InterpretException : Couldn't find resource : props.tpl



Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source