Successfully reported this slideshow.
We use your LinkedIn profile and activity data to personalize ads and to show you more relevant ads. You can change your ad preferences anytime.

django-meio-easytags Lightining Talk @ DjangoCon US 2011

938 views

Published on

My Lightning Talk at DjangoCon US 2011 about django-meio-easytags.

Published in: Technology, News & Politics
  • Be the first to comment

django-meio-easytags Lightining Talk @ DjangoCon US 2011

  1. 1. django-meio-easytags As easy way to create templatetags in DjangoWednesday, September 7, 2011
  2. 2. Who am I? • My name is Vinicius Mendes; • I work with Python and Django for 3 years; • I live in Rio de Janeiro, Brazil; • I work for globo.com; • django-brasil community co-manager.Wednesday, September 7, 2011
  3. 3. Why? • Django templatetags demands too much work to write, mainly parsing; • It’s not DRY; • There’s a pattern that many template tags follow.Wednesday, September 7, 2011
  4. 4. Templatetags Patterns • {% tag_name %} • {% tag_name var %} • {% tag_name “val” %} • {% tag_name arg=var %} • {% tag_name var “val” arg=var arg2=”val” %} • {% tag_name as var_name %}Wednesday, September 7, 2011
  5. 5. What? • A layer that abstracts templatetags parsing; • Make writing templatetags as easy as writing a Python function.Wednesday, September 7, 2011
  6. 6. Wednesday, September 7, 2011
  7. 7. Current wayWednesday, September 7, 2011
  8. 8. Simple easytagWednesday, September 7, 2011
  9. 9. Variables & LiteralsWednesday, September 7, 2011
  10. 10. Simple easyastagWednesday, September 7, 2011
  11. 11. Like it? • meiocodigo.com/projects/django-meio- easytags • github.com/vbmendes/django-meio-easytags • readthedocs.org/docs/django-meio-easytagsWednesday, September 7, 2011
  12. 12. Thanks! • Vinicius Mendes • github.com/vbmendes • @vbmendesWednesday, September 7, 2011

×