SHARE
TWEET

Untitled

a guest Jun 18th, 2019 57 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. <?php $flags = htmlspecialchars(json_encode($posts_array), ENT_QUOTES, "UTF-8"); ?>
  2. <div id="elm" data-flags="<?php echo $flags; ?>"></div>
  3. <!-- Load elm js file here -->
  4. <script>
  5.     var node = document.getElementById("elm");
  6.  
  7.     var app = Elm.Main.init({
  8.         node: node,
  9.         flags: JSON.parse(node.dataset.flags)
  10.     });
  11. </script>
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top