Cargando…

Web development with Jade /

In Detail Jade is a template engine for node.js and the default rendering engine for the Express web framework. It is a new, simplified language that compiles into HTML and is extremely useful for web developers. Jade is designed primarily for server-side templating in node.js, but it can also be us...

Descripción completa

Detalles Bibliográficos
Clasificación:Libro Electrónico
Autor principal: Lang, Sean
Formato: Electrónico eBook
Idioma:Inglés
Publicado: Birmingham : Packt Publishing, 2014.
Temas:
Acceso en línea:Texto completo
Tabla de Contenidos:
  • Cover; Copyright; Credits; About the Author; About the Reviewers; www.PacktPub.com; Table of Contents; Preface; Chapter 1: What is Jade?; Markup like poetry; Why should I preprocess?; How Jade preprocesses; Comparison with other preprocessors; HAML; PHP; Jinja2; Mustache; Installation instructions; Compiling Jade; Summary; Chapter 2: Basic Syntax; Significance of white space; Tags; Text and blocks of text; Text on the same line; Text blocks; Shorthand text blocks; Inline HTML; Attributes; Passing objects as attributes; Shorthands; IDs and classes; Automatic div; Comments; Single line.
  • Block commentsBlock expansion; Doctypes; Summary; Chapter 3: Feeding Data into Templates; Syntax; Defining variables; Interpolation everywhere!; Using variables without interpolation; Escaping; Sending the variables to the compiler; Compiler arg; Programmatically; Summary; Chapter 4: Logic in Templates; Adding logic with JavaScript; If/else; For loops; Complex operations; Built-in logical operators; If / else / else if; Unless; Cases; Each loops; While loops; A warning about interpolation; Summary; Chapter 5: Filters; The full list; Template engines; Stylesheet languages; Minifiers; Other.
  • ExamplesMarkdown; CoffeeScript; Stylus; Passing arguments; Summary; Chapter 6: Mixins; Syntax and mechanics; Defining mixins; Calling mixins; Passing blocks; Another warning about interpolation; The arguments object; Summary; Chapter 7: Template Inheritance; Blocks; Blocks don't provide encapsulation; Extends; Replace; Append; Prepend; Incompatibility; Extra things in extenders; Includes; Static; Filtered; Jade; Summary; Chapter 8: Organizing Jade Projects; General best practices; Keeping logic out of templates; Inlining; Minification; Removing style-induced redundancy; Semantic divisions.
  • Server-side versus client-side renderingClient-side; Server-side; Build systems; Summary; Appendix: A Closing Note
  • Contributing Back to Jade; Index.