Giter VIP home page Giter VIP logo

versafix-template-socialsj's Introduction

Mosaico - Master Template and HTMML template generator for Mosaico

Mosaico is a JavaScript library (or maybe a single page application) supporting the editing of email templates. This repository contains the HTMML "sources" for the versafix-1 template. They are translated to HTML and directly used by mosaico.

Here is a thumbnail of the template:

Build/Run

You need NodeJS v6.0 or higher + ImageMagick

  npm install
  # run this to generate the htmml for the non english language
  npm run translate
  # run this to generate final templates starting from htmml files
  npm run build

This will run, for each template, 3 things

  • Generate the template HTML from the source HTMML code
  • Copy the img files from def to dist.
  • Generate the template model, or check the template model against previously generated models, to track compatibility issues
  • Generate the template and block thumbnails (edres folder) for the templates.
  # run this to generate the htmml for the non english language
  npm run translate

This will generate the italian HTMML template starting from the english one and the translation definition JSON file. Given this overwrite a file in the template-def folder be care to not loose your local changes. If you use this translation then you probably want to run the translate task before the build task.

Src vs Generated

dist contains the final templates to be used in mosaico model contains generated model files, used to track compatility issues between builds.

HTMML

HTMML is a very simple template language we use to make it easier to write mosaico master templates.

versafix-template-socialsj's People

Contributors

francescbassas avatar bago avatar xavi-xaloc avatar

Watchers

James Cloos avatar  avatar

Forkers

xavi-xaloc

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.