What's the deal with “data:post.url”, “data:post.title”, etc

前端 未结 2 1999
情书的邮戳
情书的邮戳 2021-01-06 14:13

Would someone be so kind as to explain what this data object is (if it is an object) and if there is any documentation on it.

I was adding social sharing buttons to

2条回答
  •  小蘑菇
    小蘑菇 (楼主)
    2021-01-06 14:57

    In this case, data: is a namespace that scopes the data available from Blogger that can be included in a template. The authoritative list of what's availabe is here.

    It is Blogger-centric.

    The other namespaces are b: which deals with layout and control flow, and expr: which keys the engine into the fact that the tags involve data from Blogger (as you have above).

    A good tutorial is here.

提交回复
热议问题