Home Page Template

{# This is necessary to the login.js tests. -Tom #} {% if data.user %} Log Out {% else %} Log In {% endif %} {# Necessary to the apostrophe-global tests. #} counts: {{ data.global.counts }} {# Use a helper function to test template level i18n of static phrases #} {{ apos.test.verify(__('Test Phrase'), 'Test Phrase') }} {{ apos.test.verify(__({ phrase: 'Test Phrase', locale: 'es' }), 'es Test Phrase') }} {{ apos.test.verify(__n('Kitten', 1), 'Kitten') }} {{ apos.test.verify(__n('Kitten', 2), 'Kittens') }} {{ apos.test.verify(__mf('Interpolation {name}', { name: 'test' }), 'Interpolation test') }} {{ apos.test.verify(__l('Test Phrase') | join(':'), 'Test Phrase:es Test Phrase') }} {{ apos.test.verify(__h('Test Phrase')[0].en, 'Test Phrase') }} {{ apos.test.verify(__h('Test Phrase')[1].es, 'es Test Phrase') }}