github.com/bhojpur/cache@v0.0.4/templates/head.ego (about)

     1  <%! func head(w io.Writer, tx *memcache.Tx) error %>
     2  
     3  <%% import "path/filepath" %%>
     4  <%% import memcache "github.com/bhojpur/cache/pkg/memory" %%>
     5  
     6  <head>
     7    <meta charset="utf-8">
     8    <title>Bhojpur Cache - <%= filepath.Base(tx.DB().Path()) %></title>
     9  
    10    <style>
    11      table {
    12        border-collapse:collapse;
    13      }
    14      
    15      table, th, td {
    16        border: 1px solid black;
    17      }
    18  
    19      th, td { 
    20        min-width: 100px;
    21        padding: 2px 5px;
    22      }
    23    </style>
    24  </head>