file-templates
file-templates copied to clipboard
Failed to load init file, process is not defined
Tried to add a custom macro to the init file with no success, even after switching to JS:
proccess.fileTemplates = {
macros: {
year: () => {
return new Date().getYear() + 1900;
}
}
};
This fires the next error:

Ofcourse the first attempt was in coffescript
proccess.fileTemplates = {
macros:
foo: ->
return new Date().getYear() + 1900
}
Fires the same error.
Your second example is working. I don't know coffescript, but seems like first example has a syntax error in year: () => {
So please check your Atom and file-templates versions to get second example working.
Mine: atom - 1.50.0 file-templates - 0.2.0
@pavelsr The first example is in Es6 Javascript.