{"action":"created","issue":{"url":"https://api.github.com/repos/mjmlio/mjml/issues/121","repository_url":"https://api.github.com/repos/mjmlio/mjml","labels_url":"https://api.github.com/repos/mjmlio/mjml/issues/121/labels{/name}","comments_url":"https://api.github.com/repos/mjmlio/mjml/issues/121/comments","events_url":"https://api.github.com/repos/mjmlio/mjml/issues/121/events","html_url":"https://github.com/mjmlio/mjml/issues/121","id":138349206,"number":121,"title":"Using custom component?","user":{"login":"peckrob","id":500950,"avatar_url":"https://avatars.githubusercontent.com/u/500950?v=3","gravatar_id":"","url":"https://api.github.com/users/peckrob","html_url":"https://github.com/peckrob","followers_url":"https://api.github.com/users/peckrob/followers","following_url":"https://api.github.com/users/peckrob/following{/other_user}","gists_url":"https://api.github.com/users/peckrob/gists{/gist_id}","starred_url":"https://api.github.com/users/peckrob/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/peckrob/subscriptions","organizations_url":"https://api.github.com/users/peckrob/orgs","repos_url":"https://api.github.com/users/peckrob/repos","events_url":"https://api.github.com/users/peckrob/events{/privacy}","received_events_url":"https://api.github.com/users/peckrob/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/mjmlio/mjml/labels/Client","name":"Client","color":"5319e7"}],"state":"open","locked":false,"assignee":{"login":"GuillaumeBadi","id":6558790,"avatar_url":"https://avatars.githubusercontent.com/u/6558790?v=3","gravatar_id":"","url":"https://api.github.com/users/GuillaumeBadi","html_url":"https://github.com/GuillaumeBadi","followers_url":"https://api.github.com/users/GuillaumeBadi/followers","following_url":"https://api.github.com/users/GuillaumeBadi/following{/other_user}","gists_url":"https://api.github.com/users/GuillaumeBadi/gists{/gist_id}","starred_url":"https://api.github.com/users/GuillaumeBadi/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/GuillaumeBadi/subscriptions","organizations_url":"https://api.github.com/users/GuillaumeBadi/orgs","repos_url":"https://api.github.com/users/GuillaumeBadi/repos","events_url":"https://api.github.com/users/GuillaumeBadi/events{/privacy}","received_events_url":"https://api.github.com/users/GuillaumeBadi/received_events","type":"User","site_admin":false},"milestone":null,"comments":3,"created_at":"2016-03-04T01:41:49Z","updated_at":"2016-03-16T16:41:44Z","closed_at":null,"body":"Maybe I'm missing something, but there seems to be a pretty big hole in the documentation between creating a custom component ... and actually using it.\r\n\r\nhttps://mjml.io/documentation/#create-a-component\r\n\r\nI ran:\r\n\r\n`mjml --init-component header`\r\n\r\nand it created a Header.js file in the current directory. And then what? How do I use the custom component I just created? Simply running `mjml` throws an error when I try to use `mj-header`\r\n\r\n`Error: [MJMLError] UnknownMJMLElement: Could not find element for : mj-header`\r\n\r\nBut I can't see anything in the docs or the CLI tool that shows how to actually use the component."},"comment":{"url":"https://api.github.com/repos/mjmlio/mjml/issues/comments/197416655","html_url":"https://github.com/mjmlio/mjml/issues/121#issuecomment-197416655","issue_url":"https://api.github.com/repos/mjmlio/mjml/issues/121","id":197416655,"user":{"login":"arnaudbreton","id":1361191,"avatar_url":"https://avatars.githubusercontent.com/u/1361191?v=3","gravatar_id":"","url":"https://api.github.com/users/arnaudbreton","html_url":"https://github.com/arnaudbreton","followers_url":"https://api.github.com/users/arnaudbreton/followers","following_url":"https://api.github.com/users/arnaudbreton/following{/other_user}","gists_url":"https://api.github.com/users/arnaudbreton/gists{/gist_id}","starred_url":"https://api.github.com/users/arnaudbreton/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/arnaudbreton/subscriptions","organizations_url":"https://api.github.com/users/arnaudbreton/orgs","repos_url":"https://api.github.com/users/arnaudbreton/repos","events_url":"https://api.github.com/users/arnaudbreton/events{/privacy}","received_events_url":"https://api.github.com/users/arnaudbreton/received_events","type":"User","site_admin":false},"created_at":"2016-03-16T16:41:44Z","updated_at":"2016-03-16T16:41:44Z","body":"Thanks @epayet for sharing! @peckrob did it makes thing easier to you?\r\n\r\nAs @GuillaumeBadi said, the import tag will be the solution we would like to implement to solve this issue. Feel free to participate in the discussions there!"}}