(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-2d0e68b3"],{"98ca":function(e,t,a){"use strict";a.r(t);var n=function(){var e=this,t=e.$createElement;e._self._c;return e._m(0)},o=[function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("div",{staticClass:"home"},[a("h1",[e._v("Templates")]),a("table",{staticClass:"table table-hover table-striped"},[a("thead",[a("tr",[a("th",[e._v("Param")]),a("th",[e._v("alias")]),a("th",[e._v("Details")])])]),a("tbody",[a("tr",[a("td",[e._v("template")]),a("td",[e._v("tpl | t")]),a("td",[e._v("Name a set of transformations.")])])])]),a("p",[e._v(" A "),a("code",[e._v("template")]),e._v(" consists of a set of operations that is saved by giving it a name which can be used in the url. The "),a("code",[e._v("template")]),e._v(" name will then resolve into the set of operations. ")]),a("p",[e._v(" Given a template of name "),a("code",[e._v("thumbnail")]),e._v(" and operations "),a("code",[e._v("&w=90&h=90&cover=1&flop=1")])]),a("p",[a("code",[e._v("&template=thumbnail")]),e._v(" is analogous to "),a("code",[e._v("&w=90&h=90&cover=1&flop=1")]),e._v(" but gives the benefit of being able to change the operations in the backend dashboard instead of possibly multiple references in code and markup. ")]),a("p",[e._v(" Imagine using the above template in different pages on your website, and later deciding that the "),a("code",[e._v("flop")]),e._v(" operation is no longer needed. You can remove it from the template and now the images will start reflecting the change. ")]),a("p",[e._v(" While you can add more operation to urls that use templates, specifying an operation that has been used in the template will not override it. "),a("br"),a("br"),e._v(" Continuing with the "),a("code",[e._v("thumbnail")]),e._v(" example, this will not change the width: ")]),a("code",[e._v("&template=thumbnail&w=200")]),a("h2",{staticClass:"mt-4 jumptarget",attrs:{id:"jump-macros"}},[e._v("Macros")]),a("p",[e._v(" Future implementation. ")])])}],i={name:"Templates"},s=i,l=a("2877"),r=Object(l["a"])(s,n,o,!1,null,null,null);t["default"]=r.exports}}]); //# sourceMappingURL=chunk-2d0e68b3.29b48ebb.js.map