How can we save a text template in a file without doing template.execute

You can store key-values in localStorage (at browser level)