PAD Showcase
All tags/Data table

A table from inline CSV

As a pair the content is the data - CSV, JSON, YAML or XML - here a budget with a pipe formatting the amounts and a totals row.

1 The tag datatable/expenses.pad pad
{datatable totals='budget, spent', format="budget:currency('EUR'), spent:currency('EUR')", caption='Marketing budget, third quarter'}
  channel,budget,spent
  Search ads,12000,11380.40
  Social media,8500,9120.15
  Newsletter,1500,960
  Trade fair,15000,14215.80
  Print,3000,2410.25
{/datatable}
2 The result rendered on the server
Marketing budget, third quarter
Channel Budget Spent
Search ads €12,000.00 €11,380.40
Social media €8,500.00 €9,120.15
Newsletter €1,500.00 €960.00
Trade fair €15,000.00 €14,215.80
Print €3,000.00 €2,410.25
Total €40,000.00 €38,086.60