jQuery.EJS.static.text  function     

Used to convert what's in <%= %> magic tags to a string to be inserted in the rendered output.

Typically, it's a string, and the string is just inserted. However, if it's a function or an object with a hookup method, it can potentially be be ran on the element after it's inserted into the page.

This is a very nice way of adding functionality through the view. Usually this is done with jQuery.EJS.Helpers.plugin but the following fades in the div element after it has been inserted:

<%= function(el){$(el).fadeIn()} %>
$.EJS.text(input) -> String
{String|Object|Function}

the value in between the write majic tags: <%= %>

{String}

returns the content to be added to the rendered output. The content is different depending on the type:

  • string - a bac
  • foo - bar
© Jupiter IT - JavaScriptMVC Training and Support