can.view.Scanner

  • constructor
 

can.view.Scanner is used to convert a template into a JavaScript function. That function is called to produce a rendered result as a string. Often the rendered result will include data-view-id attributes on elements that will be processed after the template is used to create a document fragment.

new canjs.Scanner(Object)

can.view.Scanner is used to convert a template into a JavaScript function. That function is called to produce a rendered result as a string. Often the rendered result will include data-view-id attributes on elements that will be processed after the template is used to create a document fragment.

Parameters

  1. {Object}

    • text {can.view.Scanner.text}
    • tokens {Array<can.view.Scanner.token>}
    • helpers {Array<can.view.Scanner.helpers>}