paedml Schülerliste.html 353 B

123456789101112131415
  1. <pre>
  2. {#each schueler as s}
  3. <br>b{s.ID},{s.Name},{s.Vorname},{s.Klasse.slice(0, -1)},{h(s.ID)}
  4. {/each}
  5. </pre>
  6. <script>
  7. import Hashids from 'hashids'
  8. const hashids = new Hashids('schild.report hashing salt', 8, 'abcdefghkmnpqrstuvwxyz23456789')
  9. function h (id) { return hashids.encode(id) }
  10. export default {
  11. helpers: { h },
  12. }
  13. </script>