dburles / dburles/meteor-spacebars-tohtml

Using Template.registerHelper

Open
#4 6 comments 0 reactions 0 assignees View on GitHub
Dominant language
JavaScript
Stars
37
Forks
8
PR merge metrics
No merged PRs in 30d

Description

I'm following the readme to add a registerHelper to break apart my email templates:

screen shot 2019-02-03 at 12 34 54 pm

Here are the relevant versions:
```
dburles:spacebars-tohtml@1.0.1
blaze@2.3.2
blaze-html-templates@1.1.2
METEOR@1.7.0.3
```

I'm getting an error `Template is not defined`. I'm assuming this is because `Template` is not available on the server.

I've tried putting the `Template.registerHelper` in the `server` folder and the `lib` folder and it results in the same issue.

Any ideas what might be causing this?

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.