Page with AJAX request



snippets/1/views/v1.tt
<div id="msg"></div>

<script>
$(document).ready(function() {
    jQuery.get('/api/v1/greeting', function(data) {
        console.log(data);
        $("#msg").html(data["text"]);
    });
});
</script>