Skip to content

Instantly share code, notes, and snippets.

@adamstallard
Last active December 21, 2015 23:39
Show Gist options
  • Save adamstallard/6384076 to your computer and use it in GitHub Desktop.
Save adamstallard/6384076 to your computer and use it in GitHub Desktop.
Include a module from a different directory with the "path" attribute
<p>Hello, World!</p>
<?xml version='1.0' encoding='UTF-8'?>
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<include path="greetings">hello</include>
</head>
<body>
<hello/>
</body>
</html>
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
</head>
<body>
<p>Hello, World!</p>
</body>
</html>
@adamstallard
Copy link
Author

"hello.xml" is in the "greetings" sub-directory.

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