#Includes en Liquid
En Liquid podemos crear bloques o ‘Snippets’ dinámicos que permitan modificar el contenido, clases o cualquier contenido según sea necesario.
Por ejemplo una alerta:
Snippet “alerta”
{ | |
"Version": "2012-10-17", | |
"Statement": [ | |
{ | |
"Effect": "Allow", | |
"Action": "s3:ListBucket", | |
"Resource": "arn:aws:s3:::my-bucket" | |
}, | |
{ | |
"Effect": "Allow", |
{ | |
"Version": "2012-10-17", | |
"Statement": [ | |
{ | |
"Effect": "Allow", | |
"Principal": "*", | |
"Action": "s3:GetObject", | |
"Resource": "arn:aws:s3:::my-bucket/*" | |
} | |
] |
curl -s https://raw.githubusercontent.com/xdissent/ievms/master/ievms.sh | IEVMS_VERSIONS="9" bash |
$http.jsonp('{{ site.url }}/posts.json?callback=JSON_CALLBACK').then(function (res) { | |
$scope.posts = res.data; | |
}, function (error) { | |
console.log(error); | |
}); |
#Includes en Liquid
En Liquid podemos crear bloques o ‘Snippets’ dinámicos que permitan modificar el contenido, clases o cualquier contenido según sea necesario.
Por ejemplo una alerta:
Snippet “alerta”
var phoneRegex = /^[0-9]{9}$/; |
//Remove Base css | |
$('link').each(function(index, ele){ | |
var href = $(ele).attr('href'); | |
var regex = /base/; | |
if(regex.test(href)){ | |
$(ele).remove(); | |
} | |
}); |
{% assign words = "Hi, how are you today?" | split: ' ' %} | |
{% for word in words %} | |
{{ word }} <br> | |
{% endfor %} |
console.log = function() {} |