Blaze.toHTMLWithData

Client

Blaze.toHTMLWithData(templateOrView, data)

import { Blaze } from 'meteor/blaze' Source

Renders a template or View to HTML with a data context. Otherwise identical to Blaze.toHTML.

Arguments

templateOrView Blaze.Template or Blaze.View

The template (e.g. Template.myTemplate) or View object from which to generate HTML.

data Object or Function

The data context to use, or a function returning a data context.

doc_Meteor
2016-05-29 17:18:01
Comments
Leave a Comment

Please login to continue.