javascript - Meteor : Apply function to a value -
i'm starting learning meteor official tutorial (https://www.meteor.com/tutorials/blaze/templates).
i want use "createdat" value have on database. since value instance of date, want print day of insert using getday() function of date class.
my question : how :p mean, can directly on html file or must use smth function in our .js ?
thanks :)
you have write helper function template in js file parameters , call in html template {{helpername parameter}}
Comments
Post a Comment