Access in template is provided via property name
<template name="parent">
parent template
<?php | |
// class definitions | |
abstract class AbstractFactory { | |
protected function makeWidget() | |
{ | |
return new Widget; | |
} | |
} | |
class FactoryOne extends AbstractFactory { |
<?php | |
use PHPUnit_Framework_TestCase; | |
use Mockery; | |
class SomeTest extends PHPUnit_Framework_TestCase { | |
function testRealFooObject_BarImplementation_NotThrowingException() | |
{ | |
$foo = new FooObject; |
<?php | |
use Illuminate\Support\ServiceProvider; | |
class BarDependencyServiceProvider extends ServiceProvider { | |
public $defer = true; | |
public function register() | |
{ |
/** @jsx React.DOM */ | |
'use strict'; | |
describe('sample test', function() { | |
var Broken, Working; | |
beforeEach(function() { | |
Broken = React.createClass({ |
Model = Astro.createClass({ | |
name: "Model", | |
fields: { | |
height: "number", | |
} | |
}); | |
Model.addValidator('height', Validators.number()); | |
if (Meteor.isClient) { | |
Template.hello.events({ |
<head>
<title>9tailors Admin</title>
</head>
<body>
{{| > header }}
{{ foo.bar }}
{{ foo.baz }}
const controller = Controller(Model({})); | |
function setFoo({ input, state }) { | |
state.set('example.foo', input.value); | |
} | |
const changeInput = [setFoo]; | |
const Module = (options = {}) => { | |
return (module, controller) => { | |
module.addState({ | |
foo: "original value" |
// go here to install package control | |
// https://packagecontrol.io/installation | |
// install Babel | |
// install Sass | |
{ | |
"always_show_minimap_viewport": true, | |
"binary_file_patterns": | |
[ | |
"*.sqlite", |