1.

Record Nr.

UNINA9910453512003321

Autore

Lang Sean

Titolo

Web development with Jade : utilize the advanced features of Jade to create dynamic web pages and significantly decrease development time / / Sean Lang ; cover image by Aniket Sawant

Pubbl/distr/stampa

Birmingham, England : , : Packt Publishing, , 2014

©2014

ISBN

1-78328-636-9

Descrizione fisica

1 online resource (80 p.)

Collana

Community Experience Distilled

Disciplina

005.276

Soggetti

Web site development

Document markup languages

Electronic books.

Lingua di pubblicazione

Inglese

Formato

Materiale a stampa

Livello bibliografico

Monografia

Note generali

Includes index.

Nota di contenuto

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

Sommario/riassunto

This is a step-by step, tutorial-based book which will enable web developers to explore the functionalities of Jade and learn how to use it to write certain functions and processes for web development.This book is for web developers with at least a basic understanding of HTML and JavaScript. It will enable you to write an easier form of language that then compiles into HTML.