mirror of https://github.com/artf/grapesjs.git
nocodeframeworkdrag-and-dropsite-buildersite-generatortemplate-builderui-builderweb-builderweb-builder-frameworkwebsite-builderno-codepage-builder
You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
21 lines
336 B
21 lines
336 B
define(['backbone'],
|
|
function (Backbone) {
|
|
/**
|
|
* @class HtmlGenerator
|
|
* */
|
|
return Backbone.Model.extend({
|
|
|
|
/** @inheritdoc */
|
|
build: function(model){
|
|
var coll = model.get('components') || model,
|
|
code = '';
|
|
|
|
coll.each(function(m){
|
|
code += m.toHTML();
|
|
}, this);
|
|
|
|
return code;
|
|
},
|
|
|
|
});
|
|
});
|
|
|