Se ha denunciado esta presentación.
Utilizamos tu perfil de LinkedIn y tus datos de actividad para personalizar los anuncios y mostrarte publicidad más relevante. Puedes cambiar tus preferencias de publicidad en cualquier momento.

Razor and the Art of Templating

3.866 visualizaciones

Publicado el

Though I deliberately went easy on the slides and heavy on the code, there might be a few nuggets in here so I'm posting it anyway. Enjoy!

Publicado en: Tecnología
  • ➤➤ 3 Reasons Why You Shouldn't take Pills for ED (important) ♥♥♥
    ¿Estás seguro?    No
    Tu mensaje aparecerá aquí
  • ★★ How Long Does She Want You to Last? ★★ A recent study proved that the average man lasts just 2-5 minutes in bed (during intercourse). The study also showed that many women need at least 7-10 minutes of intercourse to reach "The Big O" - and, worse still... 30% of women never get there during intercourse. Clearly, most men are NOT fulfilling there women's needs in bed. Now, as I've said many times - how long you can last is no guarantee of being a GREAT LOVER. But, not being able to last 20, 30 minutes or more, is definitely a sign that you're not going to "set your woman's world on fire" between the sheets. Question is: "What can you do to last longer?" Well, one of the best recommendations I can give you today is to read THIS report. In it, you'll discover a detailed guide to an Ancient Taoist Thrusting Technique that can help any man to last much longer in bed. I can vouch 100% for the technique because my husband has been using it for years :) Here's the link to the report ●●●
    ¿Estás seguro?    No
    Tu mensaje aparecerá aquí

Razor and the Art of Templating

  1. 1. Razor and the Art of Templating<br />Jess Chadwick<br />Team Lead / Architect / RIA Specialist<br /><br />@jchadwick<br /><br />
  2. 2. <ul><li>Razor basics
  3. 3. Razor & ASP.NET MVC
  4. 4. Extending Razor</li></ul>Agenda<br />
  5. 5. What is Razor?<br />
  6. 6. What is Razor?<br />
  7. 7. A New View<br />
  8. 8. Simplicity <br />&<br />Elegance<br />Code & Markup<br />
  9. 9. DEMOASPX vs. Razor<br />
  10. 10. Creating Views<br />
  11. 11. Combine code and markup<br /><ul><li>Don’t think about it</li></ul>@indicates a code block<br />Standard language keywordse.g. foreach, using, inherits, etc.<br />Basic Syntax: 3 Simple Rules<br />
  12. 12. <ul><li>Create a main site layout(think “Master Page”)
  13. 13. Implement content of each page in sections
  14. 14. Think ContentPlaceHolder
  15. 15. RenderBody()
  16. 16. RenderSection()</li></ul>Designing a Site Layout<br />
  17. 17. <ul><li>functions keyword defines a code section(think <script runat=“server”>)
  18. 18. helper keyword defines a reusable Razor section</li></ul>Functions and Helpers<br />
  19. 19. Razor and ASP.NET MVC<br />Like peanut butter and chocolate<br />
  20. 20. New Keyword:<br />model<br />
  21. 21. Pause… Time out.<br />It’s gonna get scary.<br />
  22. 22. The Razor API<br />Diving deeper…<br />
  23. 23. Engine<br />Host<br />Parser<br />Generator<br />The Razor API<br />
  24. 24. Code + Markup<br />Parsed Document<br />Code Compile Unit<br />.NET Class<br />Lifecycle of a Razor Template<br />
  25. 25. Questions / Comments?<br />
  26. 26. My blog:<br />RazorPad:<br />Razor Syntax Tutorial:<br />Resources<br />
  27. 27. The <br />Razor View <br />Lifecycle<br />