{"action":"created","issue":{"url":"https://api.github.com/repos/bem/bem-forum-content-ru/issues/473","labels_url":"https://api.github.com/repos/bem/bem-forum-content-ru/issues/473/labels{/name}","comments_url":"https://api.github.com/repos/bem/bem-forum-content-ru/issues/473/comments","events_url":"https://api.github.com/repos/bem/bem-forum-content-ru/issues/473/events","html_url":"https://github.com/bem/bem-forum-content-ru/issues/473","id":92802225,"number":473,"title":"Дублирование шаблона","user":{"login":"AndreyGladkov","id":3080207,"avatar_url":"https://avatars.githubusercontent.com/u/3080207?v=3","gravatar_id":"","url":"https://api.github.com/users/AndreyGladkov","html_url":"https://github.com/AndreyGladkov","followers_url":"https://api.github.com/users/AndreyGladkov/followers","following_url":"https://api.github.com/users/AndreyGladkov/following{/other_user}","gists_url":"https://api.github.com/users/AndreyGladkov/gists{/gist_id}","starred_url":"https://api.github.com/users/AndreyGladkov/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/AndreyGladkov/subscriptions","organizations_url":"https://api.github.com/users/AndreyGladkov/orgs","repos_url":"https://api.github.com/users/AndreyGladkov/repos","events_url":"https://api.github.com/users/AndreyGladkov/events{/privacy}","received_events_url":"https://api.github.com/users/AndreyGladkov/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/bem/bem-forum-content-ru/labels/bemhtml","name":"bemhtml","color":"bfe5bf"}],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":2,"created_at":"2015-07-03T06:18:19Z","updated_at":"2015-07-07T06:16:18Z","closed_at":null,"body":"Проблема следующая есть блоки\r\n```\r\n{\r\n\tblock: 'form-input',\r\n\tname: 'user',\r\n}\t\r\n```\r\nКак все понимают элемент формы input, и есть блок \r\n```\r\n{\r\n\tblock: 'form-input',\r\n\tname: 'tel',\r\n\tjs: true,\r\n\tmods: {type: 'tel'},\r\n\tmaxlength: '13'\r\n}\r\n```\r\nБлок с модификатором, проблема с шаблоном, сейчас у него изменился шаблон относительно других inputов, я заюзал новый шаблон, но проблема в том что при сборке  этот блок собирается сначала без модификатора потом с модификатором, получается вложенность.\r\nКак избежать подобной проблемы?\r\n```\r\nblock('form-input')(\r\n\t//code\r\n);\r\n\r\nblock('form-input').mod('type', 'tel')(\r\n  //code\r\n);\r\n```"},"comment":{"url":"https://api.github.com/repos/bem/bem-forum-content-ru/issues/comments/119083944","html_url":"https://github.com/bem/bem-forum-content-ru/issues/473#issuecomment-119083944","issue_url":"https://api.github.com/repos/bem/bem-forum-content-ru/issues/473","id":119083944,"user":{"login":"AndreyGladkov","id":3080207,"avatar_url":"https://avatars.githubusercontent.com/u/3080207?v=3","gravatar_id":"","url":"https://api.github.com/users/AndreyGladkov","html_url":"https://github.com/AndreyGladkov","followers_url":"https://api.github.com/users/AndreyGladkov/followers","following_url":"https://api.github.com/users/AndreyGladkov/following{/other_user}","gists_url":"https://api.github.com/users/AndreyGladkov/gists{/gist_id}","starred_url":"https://api.github.com/users/AndreyGladkov/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/AndreyGladkov/subscriptions","organizations_url":"https://api.github.com/users/AndreyGladkov/orgs","repos_url":"https://api.github.com/users/AndreyGladkov/repos","events_url":"https://api.github.com/users/AndreyGladkov/events{/privacy}","received_events_url":"https://api.github.com/users/AndreyGladkov/received_events","type":"User","site_admin":false},"created_at":"2015-07-07T06:16:18Z","updated_at":"2015-07-07T06:16:18Z","body":"@tadatuta Первый и второй соответсвенно.\r\n```\r\nblock('form-input')(\r\n\tdef()(function(){\r\n\t\treturn applyCtx({\r\n\t\t\tblock: 'form-input-wrapper',\r\n\t\t\tcontent: [\r\n\t\t\t\tthis.ctx,\r\n\t\t\t\t{\r\n\t\t\t\t\tblock: 'form-input__success',\r\n\t\t\t\t\tcontent: { block: 'fa fa-check'}\r\n\t\t\t\t}\r\n\t\t\t]\r\n\t\t})\r\n\t}),\r\n\ttag()('input'),\r\n\tmix()(function(){\r\n\t\treturn {\r\n\t\t\tblock: this.ctx.error ? 'error': ''\r\n\t\t}\r\n\t}),\r\n\tattrs()(function(){\r\n\t\treturn{\r\n\t\t\ttype: this.ctx.type ? this.ctx.type : 'text',\r\n            value: this.ctx.val,\r\n            name: this.ctx.name,\r\n            placeholder: this.ctx.placeholder,\r\n            maxlength: this.ctx.maxlength,\r\n            disabled: this.ctx.disabled\r\n\t\t}\r\n\t})\r\n);\r\n```\r\n\r\n```\r\nblock('form-input').mod('type', 'tel')(\r\n\tdef()(function(){\r\n\t    return applyCtx({\r\n\t        block: 'form-input-wrapper',\r\n\t        content: [\r\n\t            {\r\n\t                block: 'form-input__first-num',\r\n\t                content: '+7'\r\n\t            },\r\n\t            this.ctx,\r\n\t            {\r\n\t                block: 'form-input__success',\r\n\t                content: { block: 'fa fa-check'}\r\n\t            }\r\n\t        ]\r\n\t    })\r\n\t}),\r\n\ttag()('input'),\r\n\tmix()(function(){\r\n\t    return {\r\n\t        block: this.ctx.error ? 'error': ''\r\n\t    }\r\n\t}),\r\n\tattrs()(function(){\r\n\t    return{\r\n\t        type: this.ctx.type ? this.ctx.type : 'text',\r\n\t          value: this.ctx.val,\r\n\t          name: this.ctx.name,\r\n\t          placeholder: this.ctx.placeholder,\r\n\t          maxlength: this.ctx.maxlength,\r\n\t          disabled: this.ctx.disabled\r\n\t    }\r\n\t})\r\n);\r\n```"}}