{"id":16465570,"url":"https://github.com/peterfox/laravel-elixir-mjml","last_synced_at":"2025-07-24T02:34:06.443Z","repository":{"id":57222448,"uuid":"58946262","full_name":"peterfox/laravel-elixir-mjml","owner":"peterfox","description":"A task plugin for running MJML templates in Laravel Elixir","archived":false,"fork":false,"pushed_at":"2017-04-14T11:03:21.000Z","size":2,"stargazers_count":11,"open_issues_count":3,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-06-24T16:49:38.677Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/peterfox.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE.txt","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2016-05-16T16:01:28.000Z","updated_at":"2024-10-24T10:49:19.000Z","dependencies_parsed_at":"2022-08-26T13:41:59.169Z","dependency_job_id":null,"html_url":"https://github.com/peterfox/laravel-elixir-mjml","commit_stats":null,"previous_names":[],"tags_count":1,"template":false,"template_full_name":null,"purl":"pkg:github/peterfox/laravel-elixir-mjml","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/peterfox%2Flaravel-elixir-mjml","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/peterfox%2Flaravel-elixir-mjml/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/peterfox%2Flaravel-elixir-mjml/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/peterfox%2Flaravel-elixir-mjml/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/peterfox","download_url":"https://codeload.github.com/peterfox/laravel-elixir-mjml/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/peterfox%2Flaravel-elixir-mjml/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":266785529,"owners_count":23983827,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","status":"online","status_checked_at":"2025-07-24T02:00:09.469Z","response_time":99,"last_error":null,"robots_txt_status":null,"robots_txt_updated_at":null,"robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2024-10-11T11:34:28.312Z","updated_at":"2025-07-24T02:34:06.417Z","avatar_url":"https://github.com/peterfox.png","language":"JavaScript","readme":"Laravel Elixir MJML\n==================\n\n[MJML](https://mjml.io/documentation/#getting-started) is a cool little tool for making responsive and inlined emails\nin a simplier fashion. This library simply allows you to use it in \n[Laravel Elixir](https://laravel.com/docs/5.2/elixir) with zero fuss. Converting any .mjml templates into blade \nfiles (please bare in mind blade markup found in mjml files may sometimes break and it's best to stick to \nsimple variable echos).\n\nInstall\n-------\n\nIn your Laravel Project's base folder run:\n\n```ssh\nnpm install --save-dev elixir-mjml\n```\n\nThen edit your gulpfile.js to contain the following:\n\n```javascript\nvar elixir = require('laravel-elixir');\nrequire('elixir-mjml');\n\nelixir.config.email = {\n    mjml: {\n        folder: 'mjml'\n    }\n};\n\nelixir(function(mix) {\n    mix.mjml();\n});\n\n```\n\nAll the MJML should be placed in a folder called mjml inside the assets folder. When the gulp task is run it will\ncreate the output blade files in your view resources folder. **The folder structure and files will be placed in keeping\nto where your mjml is e.g. email/test.mjml will be made into email/test.blade.php, this act will overwrite previous\ntemplates if the files match.**\n\nYou can modify the src, output and engine of the task in your gulpfile.js, like so:\n\n```javascript\nvar mjmlEngine = require('mjml')\n\nelixir(function(mix) {\n    mix.mjml('**/*.mjml', 'resources/views', mjmlEngine);\n});\n```\n\nRun\n----\n\nSimply run *gulp* or *gulp mjml* to make the magic happen.\n\nAuthor \u0026 License\n------\n\nThe MIT License (MIT)\n\nCopyright (c) 2016 [Peter Fox](http://www.peterfox.me)\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fpeterfox%2Flaravel-elixir-mjml","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fpeterfox%2Flaravel-elixir-mjml","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fpeterfox%2Flaravel-elixir-mjml/lists"}