twitst4tz

twitter statistics web application
Log | Files | Refs | README | LICENSE

_limitProperties.jst (350B)


      1 {{# def.definitions }}
      2 {{# def.errors }}
      3 {{# def.setupKeyword }}
      4 {{# def.$data }}
      5 
      6 {{ var $op = $keyword == 'maxProperties' ? '>' : '<'; }}
      7 if ({{# def.$dataNotType:'number' }} Object.keys({{=$data}}).length {{=$op}} {{=$schemaValue}}) {
      8   {{ var $errorKeyword = $keyword; }}
      9   {{# def.error:'_limitProperties' }}
     10 } {{? $breakOnError }} else { {{?}}