johnhamelink
9/24/2012 - 4:27 PM

footer.php

    </div>
    <?php echo Asset::container('footer')->scripts(); ?>
    <script type="text/javascript" charset="utf-8">
        $(document).ready(function(){
            <?php
                // Defines how we handle all the
                // inline JS
                Event::flusher(
                    'inlineJS',
                    function ($key, $value) {
                        echo $value;
                    }
                );

                // Handle the inline JS
                Event::flush('inlineJS');
            ?>
        });
    </script>
</body>
</html>