The template assumes the formula will always live in salt://<formulaname> as noted here: {% from "template/map.jinja" import template with context %} It would be better to use: {% from tpldir ~ "/map.jinja" import template with context %}