Angular: Empty Fiddle
http://angularjs.org/
HTML
<script src="http://code.angularjs.org/angular-1.0.1.js"></script>
<test>
<div>
{{ message }}
</div>
</test>
JavaScript
var myApp = angular.module('myApp',[]);
//myApp.directive('myDirective', function() {});
//myApp.factory('myService', function() {});
myApp.directive('test', function () {
return {
restrict: 'E',
transclude: true,
controller: ['$scope', function ($scope) {
$scope.message = 'Directive message';
}],
template: '<div ng-transclude></div>'
}
});