Skip to content

Instantly share code, notes, and snippets.

@adamstallard
Last active December 21, 2015 20:29
Show Gist options
  • Save adamstallard/6361248 to your computer and use it in GitHub Desktop.
Save adamstallard/6361248 to your computer and use it in GitHub Desktop.
Include a module (compiled with modest).
<?xml version='1.0' encoding='UTF-8'?>
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<include>lorem</include>
</head>
<body>
<lorem/>
</body>
</html>
<p>Lorem ipsum dolor sit amet, consectetur adipiscing elit. Praesent euismod ultrices ante, ac laoreet nulla vestibulum adipiscing. Nam quis justo in augue auctor imperdiet. Curabitur aliquet orci sit amet est posuere consectetur.</p>
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
</head>
<body>
<p class="lorem">Lorem ipsum dolor sit amet, consectetur adipiscing elit. Praesent euismod ultrices ante, ac laoreet nulla vestibulum adipiscing. Nam quis justo in augue auctor imperdiet. Curabitur aliquet orci sit amet est posuere consectetur.</p>
</body>
</html>
@adamstallard
Copy link
Author

Run modest (or grunt-modest) to recreate this output.

Jquery and "modest-preview.js" don't need to be included in the head of this example since it is only compiled, not previewed.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment