More custom template flexibility
Hello friends i have a good news for you that you may already know :p anyways if you aren't aware of a new awsome feature recently introduced by official blogger team.The new feature is called Lambda Expresions.With this feature we can do many interesting and amazing things like adding an image to a number of posts by only adding some code in template instead of adding in one by one in each and every post.Sounds interesting right...?Words from bloggger team
Last May, we added some expressions to our templating language to make it easier for you to customize your blog’s look and feel. These new expressions proved popular with those of you who enjoy advanced blogging tools, so we wanted to offer you even more flexibility.
Starting today, we’re introducing a new set of operators, which we’re calling lambda expressions, that allow you to apply rules to whole sets of data (think posts, comments, or labels), rather than just individual instances.
Okay Let's Get Into It
Let’s say you wanted to add a flower image to all posts with the label “Flower,” for example. With lambda expressions, simply define a variable name that each item in the set will take, and then refer to the variable name as though it were each item (as shown in below code) :[code]
[/code]
There’s lots more that you can do using lambda expressions, like only showing posts in your feed with a given label or quickly calculating how many posts you have with a given number of comments.
For a full list of the new lambda expressions available, check out the blogger help forum.
Happy Blogging!
Like our facebook page to get more updates about lambda expressions.
good, and thanks for a beautiful example.
ReplyDeleteYour welcome!
Deleteok
ReplyDelete