Git Product home page Git Product logo

tims's Introduction

TIMS: Twig Interface Management System

Drupal 7 module that enables the creation of Twig templates within the browser.

See INSTALL.txt for installation instructions.

-----------------------
Usage:
Manage templates at "Structure->Twig templates".

-----------------------
Naming your templates:
Naming convention is based on what is contained in the theme_get_suggestions array.
For example, if you would like to template a node of the article content type,
instead of creating a php file named "node--article.tpl.php" you will create a
template in the module's interface called "node__article". See
https://drupal.org/node/223440 for more about working with template suggestions
and their naming convention.

-----------------------
Twig syntax:
For a guide to the Twig syntax, refer to the documention for theming Drupal 8
(https://drupal.org/node/1906384) which uses Twig for theming as part of core.

-----------------------
Differences between Drupal 8 theming and this module:

Drupal 8 Twig syntax needs to modified when printing a field. The variable
needs to wrapped in the render function and the raw filter must be applied:

Drupal 7 TIMS Module: {{ render(content.body)|raw }}
Drupal 8: {{ content.body }}

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.