mirror of
https://github.com/marko-js/marko.git
synced 2025-12-08 19:26:05 +00:00
7 lines
163 B
JavaScript
7 lines
163 B
JavaScript
module.exports = function (context) {
|
|
var attrs = context.attributes;
|
|
if (!attrs._nextId) {
|
|
attrs._nextId = 0;
|
|
}
|
|
return attrs._nextId++;
|
|
}; |