{"action":"created","issue":{"url":"https://api.github.com/repos/mjmlio/mjml/issues/120","repository_url":"https://api.github.com/repos/mjmlio/mjml","labels_url":"https://api.github.com/repos/mjmlio/mjml/issues/120/labels{/name}","comments_url":"https://api.github.com/repos/mjmlio/mjml/issues/120/comments","events_url":"https://api.github.com/repos/mjmlio/mjml/issues/120/events","html_url":"https://github.com/mjmlio/mjml/issues/120","id":138320656,"number":120,"title":"[proposal] import tag","user":{"login":"luizbills","id":1798830,"avatar_url":"https://avatars.githubusercontent.com/u/1798830?v=3","gravatar_id":"","url":"https://api.github.com/users/luizbills","html_url":"https://github.com/luizbills","followers_url":"https://api.github.com/users/luizbills/followers","following_url":"https://api.github.com/users/luizbills/following{/other_user}","gists_url":"https://api.github.com/users/luizbills/gists{/gist_id}","starred_url":"https://api.github.com/users/luizbills/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/luizbills/subscriptions","organizations_url":"https://api.github.com/users/luizbills/orgs","repos_url":"https://api.github.com/users/luizbills/repos","events_url":"https://api.github.com/users/luizbills/events{/privacy}","received_events_url":"https://api.github.com/users/luizbills/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/mjmlio/mjml/labels/Feature%20request","name":"Feature request","color":"eb6420"}],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":3,"created_at":"2016-03-03T22:48:13Z","updated_at":"2016-03-07T13:46:46Z","closed_at":null,"body":"Any plans to an import tag?\r\n\r\n```xml\r\n<mj-import file=\"some-template.mjml\"></mj-import>\r\n<!-- or -->\r\n<mj-import template=\"some-template.mjml\"></mj-import>\r\n```\r\n```xml\r\n<!-- or -->\r\n<mj-include template=\"some-template.mjml\"></mj-include>\r\n```\r\n\r\nuseful to maintain a large template, large raw parts, reusable blocks, etc..."},"comment":{"url":"https://api.github.com/repos/mjmlio/mjml/issues/comments/193253390","html_url":"https://github.com/mjmlio/mjml/issues/120#issuecomment-193253390","issue_url":"https://api.github.com/repos/mjmlio/mjml/issues/120","id":193253390,"user":{"login":"luizbills","id":1798830,"avatar_url":"https://avatars.githubusercontent.com/u/1798830?v=3","gravatar_id":"","url":"https://api.github.com/users/luizbills","html_url":"https://github.com/luizbills","followers_url":"https://api.github.com/users/luizbills/followers","following_url":"https://api.github.com/users/luizbills/following{/other_user}","gists_url":"https://api.github.com/users/luizbills/gists{/gist_id}","starred_url":"https://api.github.com/users/luizbills/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/luizbills/subscriptions","organizations_url":"https://api.github.com/users/luizbills/orgs","repos_url":"https://api.github.com/users/luizbills/repos","events_url":"https://api.github.com/users/luizbills/events{/privacy}","received_events_url":"https://api.github.com/users/luizbills/received_events","type":"User","site_admin":false},"created_at":"2016-03-07T13:46:46Z","updated_at":"2016-03-07T13:46:46Z","body":"Yes, @arnaudbreton \r\nLike this:\r\n```xml\r\n<mj-body>\r\n    <mj-include template=\"my-header.mjml\" ></mj-include>\r\n    <mj-include template=\"my-content-1.mjml\" ></mj-include>\r\n    <mj-include template=\"my-content-2.mjml\" ></mj-include>\r\n    <mj-include template=\"my-footer.mjml\" ></mj-include>\r\n</mj-body>\r\n```\r\n\r\nMaybe will be interesting too, if has template arguments\r\n```xml\r\n<mj-include \r\n    template=\"my-header.mjml\"\r\n    name=\"My Company\"\r\n    image=\"https://domain.com/header-image.png\"\r\n></mj-include>\r\n\r\n<!-- inside my-header.mjml -->\r\n<mj-section>\r\n  <mj-section>\r\n    <mj-column>\r\n      <mj-image src=\"{image}\">\r\n      </mj-image>\r\n    </mj-column>\r\n  </mj-section>\r\n  <mj-section>\r\n    <mj-column>\r\n      <mj-text>{name}</mj-text>\r\n    </mj-column>\r\n  </mj-section>\r\n</mj-section>\r\n```"}}