Test 2. test.coffee { Template } = require 'm."/> Test 2. test.coffee { Template } = require 'm."/> Test 2. test.coffee { Template } = require 'm"/>
خرید بک لینک

Vote count: 0

I have 2 files in the main dir of my Meteor project. 1. test.html

<template name="test">
  Test
</template>

2. test.coffee

{ Template } = require 'meteor/templating'
#require './test.html'

Template.test.onRendered () ->
  console.log 'test rendered'

When the comment is active a get the error TypeError: Caot read property 'test' of undefined when I comment it in the error is: Error: Caot find module './test.html'.

Is it still posible to work with Blaze and CoffeeScript?

asked 37 secs ago

برچسب: نویسنده: استخدام کار تاريخ: يکشنبه 19 ارديبهشت 1395 ساعت: 4:15

صفحه بندی