Example #1
0
builder.write(
    [
        {
            "template": "header.html",
            "options": {
                "intro": "This is the introduction which will appear first thing after the subject line",
                "logo_image": "https://cms-media.skiomusic.com/wp-content/uploads/sites/4/2015/10/29033923/skio-logo-white.png",
                "logo_alt": "Skio Music",
                "tagline": "Discover Music, Build Contracts and Find Collaborators",
            },
        },
        {
            "template": "hero.html",
            "options": {
                "image": "http://s13.postimg.org/onrn1n72f/big_hero1.png",
                "title": "The best product ever made",
                "button": "Go",
            },
        },
        {
            "template": "news.html",
            "options": {
                "articles": [
                    {
                        "image": "https://cms-media.skiomusic.com/wp-content/uploads/sites/3/2015/09/29200035/SKIO-Music_Biking_Burning_Man_edited.jpg",
                        "button": "button",
                        "title": "Test",
                        "content": "If the application enables the Loop Controls, its possible to use break and continue in loops. When break is reached, the loop is terminated; if continue is reached, the processing is stopped and continues with the next iteration.",
                    },
                    {
                        "image": "https://cms-media.skiomusic.com/wp-content/uploads/sites/3/2015/09/29200035/SKIO-Music_Biking_Burning_Man_edited.jpg",
                        "button": "button",
                        "title": "Test",
                        "content": "If the application enables the Loop Controls, its possible to use break and continue in loops. When break is reached, the loop is terminated; if continue is reached, the processing is stopped and continues with the next iteration.",
                    },
                    {
                        "image": "https://cms-media.skiomusic.com/wp-content/uploads/sites/3/2015/09/29200035/SKIO-Music_Biking_Burning_Man_edited.jpg",
                        "button": "button",
                        "title": "Test",
                        "content": "If the application enables the Loop Controls, its possible to use break and continue in loops. When break is reached, the loop is terminated; if continue is reached, the processing is stopped and continues with the next iteration.",
                    },
                ]
            },
        },
        {
            "template": "notifications.html",
            "options": {
                "notifications": [
                    {
                        "image": "http://www.myiconfinder.com/uploads/iconsets/256-256-64273d52c282e3b26d2d0968d08b9d8d.png",
                        "subtitle": "Jan 4 2015",
                        "title": "Event Name",
                        "content": "This is a notification about something happening at a certain time.",
                    },
                    {
                        "image": "http://www.myiconfinder.com/uploads/iconsets/256-256-64273d52c282e3b26d2d0968d08b9d8d.png",
                        "subtitle": "Jan 4 2015",
                        "title": "Event Name",
                        "content": "This is a notification about something happening at a certain time.",
                    },
                    {
                        "image": "http://www.myiconfinder.com/uploads/iconsets/256-256-64273d52c282e3b26d2d0968d08b9d8d.png",
                        "subtitle": "Jan 4 2015",
                        "title": "Event Name",
                        "content": "This is a notification about something happening at a certain time.",
                    },
                ]
            },
        },
        {
            "template": "footer.html",
            "options": {
                "links": [
                    {
                        "url": "#",
                        "image": "http://icons.iconarchive.com/icons/brainleaf/round-social/128/youtube-icon.png",
                    },
                    {
                        "url": "#",
                        "image": "http://icons.iconarchive.com/icons/brainleaf/round-social/128/facebook-icon.png",
                    },
                ]
            },
        },
    ]
)
Example #2
0
builder.write([
    {
        'template': 'header.html',
        'options': {
            'intro': 'This is the introduction which will appear first thing after the subject line',
            'logo_image': 'https://cms-media.skiomusic.com/wp-content/uploads/sites/4/2015/10/29033923/skio-logo-white.png',
            'logo_alt': 'Skio Music',
            'tagline': 'Discover Music, Build Contracts and Find Collaborators'
        }
    },
    {
        'template': 'panel.html',
        'options': {
            'title': 'Thank You For Signing Up!',
            'content': """
            Hello Person,
            This is an announcement made inside a panel.
            Here is where you would tell people about what you can do for them.
            """,
            'button': 'Check it out',
        }
    },
    {
        'template': 'panel.html',
        'options': {
            'title': 'Need Help?',
            'content': """
            Our help section can help you with anything and everything.
            """,
            'button': 'Get Help',
        }
    },
    {
        'template': 'footer.html',
        'options': {
            'links': [
                {'url': '#', 'image': 'http://icons.iconarchive.com/icons/brainleaf/round-social/128/youtube-icon.png'},
                {'url': '#', 'image': 'http://icons.iconarchive.com/icons/brainleaf/round-social/128/facebook-icon.png'},
            ]
        }
    },
])
Example #3
0
builder.write([
    {
        'template': 'header.html',
        'options': {
            'intro': 'This is the introduction which will appear first thing after the subject line',
            'logo_image': 'https://cms-media.skiomusic.com/wp-content/uploads/sites/4/2015/10/29033923/skio-logo-white.png',
            'logo_alt': 'Skio Music',
            'tagline': 'Discover Music, Build Contracts and Find Collaborators'
        }
    },
    {
        'template': 'articles.html',
        'options': {
            'articles': [
                {'image': 'https://cdn0.iconfinder.com/data/icons/superuser-web-kit/512/686909-user_people_man_human_head_person-512.png', 'title': 'Test', 'content': 'Someone has done something.'},
                {'image': 'https://cdn0.iconfinder.com/data/icons/superuser-web-kit/512/686909-user_people_man_human_head_person-512.png', 'title': 'Test', 'content': 'Someone has done something.'},
                {'image': 'https://cdn0.iconfinder.com/data/icons/superuser-web-kit/512/686909-user_people_man_human_head_person-512.png', 'title': 'Test', 'content': 'Someone has done something.'},
                {'image': 'https://cdn0.iconfinder.com/data/icons/superuser-web-kit/512/686909-user_people_man_human_head_person-512.png', 'title': 'Test', 'content': 'Someone has done something.'},
                {'image': 'https://cdn0.iconfinder.com/data/icons/superuser-web-kit/512/686909-user_people_man_human_head_person-512.png', 'title': 'Test', 'content': 'Someone has done something.'},
                {'image': 'https://cdn0.iconfinder.com/data/icons/superuser-web-kit/512/686909-user_people_man_human_head_person-512.png', 'title': 'Test', 'content': 'Someone has done something.'},
            ]
        }
    },
    {
        'template': 'footer.html',
        'options': {
            'links': [
                {'url': '#', 'image': 'http://icons.iconarchive.com/icons/brainleaf/round-social/128/youtube-icon.png'},
                {'url': '#', 'image': 'http://icons.iconarchive.com/icons/brainleaf/round-social/128/facebook-icon.png'},
            ]
        }
    },
])
Example #4
0
from builder import Builder

builder = Builder('dark-hero.html')

builder.write([
    {
        'template': 'dark-hero.html',
        'options': {
            'image': 'http://s30.postimg.org/4h73cnl7l/hero.png',
            'title': 'Freedom to Create',
            'content': """
                Dear customer,
                Lorem ipsum dolor sit amet, consectetur adipiscing elit. Sed varius, leo a ullamcorper feugiat, ante purus sodales justo, a faucibus libero lacus a est.
                Sed varius, leo a ullamcorper feugiat, ante purus sodales justo, a faucibus libero lacus a est. Aenean at mollis ipsum. Lorem ipsum dolor sit amet, consectetur adipiscing elit. Sed varius, leo a ullamcorper feugiat, ante purus sodales justo, a faucibus libero lacus a est.
                Sincerely,<br>Colin Walker
            """
        }
    }
])
Example #5
0
builder.write(
    {
        "title": "Title",
        "intro": "This is the introduction which will appear first thing after the subject line",
        "elements": [
            {
                "template": "header.html",
                "options": {
                    "intro": "This is the introduction which will appear first thing after the subject line",
                    "logo_image": "https://cms-media.skiomusic.com/wp-content/uploads/sites/4/2015/10/29033923/skio-logo-white.png",
                    "logo_alt": "Skio Music",
                    "tagline": "Discover Music, Build Contracts and Find Collaborators",
                },
            },
            {
                "template": "panel.html",
                "options": {
                    "title": "This is a cool panel",
                    "content": """
                Hello Everyone,

                This is an announcement made inside a panel.
                """,
                    "button": "Check it out",
                },
            },
            {
                "template": "header.html",
                "options": {
                    "intro": "This is the first line that will show up right after the subject.",
                    "logo_image": "https://cms-media.skiomusic.com/wp-content/uploads/sites/4/2015/10/29033923/skio-logo-white.png",
                    "logo_alt": "Skio Music",
                },
            },
            {
                "template": "dark-hero.html",
                "options": {
                    "image": "http://s30.postimg.org/4h73cnl7l/hero.png",
                    "title": "Freedom to Create",
                    "content": """
                    Dear customer,
                    Lorem ipsum dolor sit amet, consectetur adipiscing elit. Sed varius, leo a ullamcorper feugiat, ante purus sodales justo, a faucibus libero lacus a est.
                    Sed varius, leo a ullamcorper feugiat, ante purus sodales justo, a faucibus libero lacus a est. Aenean at mollis ipsum. Lorem ipsum dolor sit amet, consectetur adipiscing elit. Sed varius, leo a ullamcorper feugiat, ante purus sodales justo, a faucibus libero lacus a est.
                    Sincerely,<br>Colin Walker
                """,
                },
            },
            {
                "template": "full-hero.html",
                "options": {
                    "image": "https://cms-media.skiomusic.com/wp-content/uploads/sites/3/2015/09/29200035/SKIO-Music_Biking_Burning_Man_edited.jpg"
                },
            },
            {
                "template": "announcement.html",
                "options": {
                    "image": "https://cdn.tutsplus.com/webdesign/uploads/legacy/tuts/341_wf/tool-balsamiq.png",
                    "title": "The best product ever made",
                },
            },
            {
                "template": "letter.html",
                "options": {
                    "content": """
                        Dear customer,
                        Lorem ipsum dolor sit amet, consectetur adipiscing elit. Sed varius, leo a ullamcorper feugiat, ante purus sodales justo, a faucibus libero lacus a est.
                        Sed varius, leo a ullamcorper feugiat, ante purus sodales justo, a faucibus libero lacus a est. Aenean at mollis ipsum. Lorem ipsum dolor sit amet, consectetur adipiscing elit. Sed varius, leo a ullamcorper feugiat, ante purus sodales justo, a faucibus libero lacus a est.
                        Sincerely,<br>Colin Walker
                    """
                },
            },
            {
                "template": "notifications.html",
                "options": {
                    "notifications": [
                        {
                            "image": "https://cms-media.skiomusic.com/wp-content/uploads/sites/3/2015/09/29200035/SKIO-Music_Biking_Burning_Man_edited.jpg",
                            "title": "Test",
                            "content": "If the application enables the Loop Controls, its possible to use break and continue in loops. When break is reached, the loop is terminated.",
                        },
                        {
                            "image": "https://cms-media.skiomusic.com/wp-content/uploads/sites/3/2015/09/29200035/SKIO-Music_Biking_Burning_Man_edited.jpg",
                            "title": "Test",
                            "content": "If the application enables the Loop Controls, its possible to use break and continue in loops. When break is reached, the loop is terminated.",
                        },
                        {
                            "image": "https://cms-media.skiomusic.com/wp-content/uploads/sites/3/2015/09/29200035/SKIO-Music_Biking_Burning_Man_edited.jpg",
                            "title": "Test",
                            "content": "If the application enables the Loop Controls, its possible to use break and continue in loops. When break is reached, the loop is terminated.",
                        },
                    ]
                },
            },
            {
                "template": "hero.html",
                "options": {
                    "image": "https://cms-media.skiomusic.com/wp-content/uploads/sites/3/2015/09/29200035/SKIO-Music_Biking_Burning_Man_edited.jpg",
                    "alt": "hero-image",
                    "title": "This is a really cool title",
                    "caption": "This is a caption",
                    "button": "Learn More",
                },
            },
            {
                "template": "news.html",
                "options": {
                    "articles": [
                        {
                            "image": "https://cms-media.skiomusic.com/wp-content/uploads/sites/3/2015/09/29200035/SKIO-Music_Biking_Burning_Man_edited.jpg",
                            "title": "Test",
                            "content": "If the application enables the Loop Controls, its possible to use break and continue in loops. When break is reached, the loop is terminated; if continue is reached, the processing is stopped and continues with the next iteration.",
                        },
                        {
                            "image": "https://cms-media.skiomusic.com/wp-content/uploads/sites/3/2015/09/29200035/SKIO-Music_Biking_Burning_Man_edited.jpg",
                            "title": "Test",
                            "content": "If the application enables the Loop Controls, its possible to use break and continue in loops. When break is reached, the loop is terminated; if continue is reached, the processing is stopped and continues with the next iteration.",
                        },
                        {
                            "image": "https://cms-media.skiomusic.com/wp-content/uploads/sites/3/2015/09/29200035/SKIO-Music_Biking_Burning_Man_edited.jpg",
                            "title": "Test",
                            "content": "If the application enables the Loop Controls, its possible to use break and continue in loops. When break is reached, the loop is terminated; if continue is reached, the processing is stopped and continues with the next iteration.",
                        },
                    ]
                },
            },
            {
                "template": "articles.html",
                "options": {
                    "articles": [
                        {
                            "image": "https://cms-media.skiomusic.com/wp-content/uploads/sites/3/2015/09/29200035/SKIO-Music_Biking_Burning_Man_edited.jpg",
                            "title": "Test",
                            "content": "If the application enables the Loop Controls, its possible to use break and continue in loops. When break is reached, the loop is terminated; if continue is reached, the processing is stopped and continues with the next iteration.",
                        },
                        {
                            "image": "https://cms-media.skiomusic.com/wp-content/uploads/sites/3/2015/09/29200035/SKIO-Music_Biking_Burning_Man_edited.jpg",
                            "title": "Test",
                            "content": "If the application enables the Loop Controls, its possible to use break and continue in loops. When break is reached, the loop is terminated; if continue is reached, the processing is stopped and continues with the next iteration.",
                        },
                        {
                            "image": "https://cms-media.skiomusic.com/wp-content/uploads/sites/3/2015/09/29200035/SKIO-Music_Biking_Burning_Man_edited.jpg",
                            "title": "Test",
                            "content": "If the application enables the Loop Controls, its possible to use break and continue in loops. When break is reached, the loop is terminated; if continue is reached, the processing is stopped and continues with the next iteration.",
                        },
                    ]
                },
            },
            {
                "template": "receipt.html",
                "options": {
                    "title": "Your Receipt",
                    "description": "This is an official reciept from SKIO Music",
                    "total": "$ 1,000,000",
                    "order": [
                        {"name": "Milk", "price": "$ 11.00"},
                        {"name": "Milk", "price": "$ 11.00"},
                        {"name": "Milk", "price": "$ 11.00"},
                        {"name": "Milk", "price": "$ 11.00"},
                    ],
                },
            },
        ],
    }
)
Example #6
0
builder.write([
    {
        'template': 'header.html',
        'options': {
            'intro': 'This is the introduction which will appear first thing after the subject line',
            'logo_image': 'https://cms-media.skiomusic.com/wp-content/uploads/sites/4/2015/10/29033923/skio-logo-white.png',
            'logo_alt': 'Skio Music',
            'tagline': 'Discover Music, Build Contracts and Find Collaborators'
        }
    },
    {
        'template': 'receipt.html',
        'options': {
            'title': 'Thank You For Your Purchase',
            'description': 'This is an official reciept from SKIO Music',
            'total': '$ 1,000,000',
            'order': [
                {'name': 'Milk', 'price': '$ 11.00'},
                {'name': 'Milk', 'price': '$ 11.00'},
                {'name': 'Milk', 'price': '$ 11.00'},
                {'name': 'Milk', 'price': '$ 11.00'},
            ]
        }
    },
    {
        'template': 'footer.html',
        'options': {
            'links': [
                {'url': '#', 'image': 'http://icons.iconarchive.com/icons/brainleaf/round-social/128/youtube-icon.png'},
                {'url': '#', 'image': 'http://icons.iconarchive.com/icons/brainleaf/round-social/128/facebook-icon.png'},
            ]
        }
    },
])