Giter VIP home page Giter VIP logo

ampier-framework's Introduction

ampier email framework

It is an email framework that enables quick and convenient creation of cross-platform AMP and HTML emails with the help of TJML โ€” an xml-like markup language.

Email Coding Optimization with Ampier

  • automated HTML and AMP email creation from TJML code,
  • 50% faster HTML coding, as compared to regular email HTML coding,
  • looser skill requirements for frontend developers and HTML coders,
  • emails that respond correctly and immediately to screen size change, including the cases when media queries are not used,
  • emails that are displayed properly in Microsoft Outlook (2003-2020), as well as in outdated email clients, such as Lotus mail.

Additional Tools Available in the Ampier Email Interface

  • dark mode check,
  • code compression,
  • responsive design preview,
  • pixelPerfect tool,
  • rendered HTML file size calculation,
  • single-click screenshot of the designed email.

TJML

TJML was build using Vue framework; each tag in it is a Vue component. To create an email, you need to add our JavaScript to your HTML file. Before sending, you should export the rendered HTML or AMP version of the email you created. As you export, each component will be transformed into regular email HTML.

Autocomplete in JetBrains IDEs

You can use web-types in WebStorm and PhpStorm for autocomplete TJML tags and attributes. Or use start pack for fast dive.

Enabling Ampier Framework

Insert the following JavaScript code immediately after the <body> tag:

<script type="text/javascript">
var s=document.createElement("script"),l=document.createElement("link"),d=new Date;s.setAttribute("src","https://ampier.io/tjml/app.js?ver="+d.getTime()),l.setAttribute("type","text/css"),l.setAttribute("rel","stylesheet"),l.setAttribute("href","https://ampier.io/tjml/app.css?ver="+d.getTime()),document.head.appendChild(l),document.body.appendChild(s); 
</script>

Email Structure

You need to stick to the following structure of the document: You can insert any TJML or email HTML code between the <m-body> and </m-body> tags. Please note that regular email HTML code will not allow for the creation of an AMP version of the email.

<div id="app">
<tj-ui>
    <m-body>
        <!-- some TJML code -->
    </m-body>
</tj-ui>
</div>

Tags and Attributes

You can find detailed information about all the available tags (components) and attributes in the Ampier docs and wiki.

ampier-framework's People

Contributors

pixcraft-io avatar

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.