Templates e o JavaScript
Upcoming SlideShare
Loading in...5
×
 

Templates e o JavaScript

on

  • 1,545 views

Apresentação sobre os desafios e soluções para trabalhar com templates no JavaScript.

Apresentação sobre os desafios e soluções para trabalhar com templates no JavaScript.

Statistics

Views

Total Views
1,545
Views on SlideShare
1,545
Embed Views
0

Actions

Likes
4
Downloads
7
Comments
0

0 Embeds 0

No embeds

Accessibility

Categories

Upload Details

Uploaded via as Microsoft PowerPoint

Usage Rights

© All Rights Reserved

Report content

Flagged as inappropriate Flag as inappropriate
Flag as inappropriate

Select your reason for flagging this presentation as inappropriate.

Cancel
  • Full Name Full Name Comment goes here.
    Are you sure you want to
    Your message goes here
    Processing…
Post Comment
Edit your comment

Templates e o JavaScript Templates e o JavaScript Presentation Transcript

  • Templates e o JavaScript Evandro Leopoldino Gonçalves Desenvolvedor, Globo.com [email_address] @evandrolg
  • O que se vê por aí...
  • Concatenação de Strings
  • Dá para melhorar...
  • Array.join()
  • Supplant http://javascript.crockford.com/remedial.html
  • Micro-Templating http://ejohn.org/blog/javascript-micro-templating/
  • Sprintf http://www.nczonline.net/blog/2011/10/11/simple-maintainable-templating-with-javascript/
  • Mustache http://github.com/janl/mustache.js
  • Outras bibliotecas - jQuery Template: https://github.com/jquery/jquery-tmpl - Handlebars: http://www.handlebarsjs.com/
  • Carregando HTML externo http://encosia.com/using-external-templates-with-jquery-templates/
  • Dúvidas ?
  • Obrigado! ;) Evandro L. Gonçalves [email_address] @evandrolg