This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// A simple text editor implemented in Java using JFrame | |
import java.awt.Font; | |
import java.awt.Toolkit; | |
import java.awt.Window; | |
import java.awt.event.ActionEvent; | |
import java.awt.event.ActionListener; | |
import java.awt.event.WindowEvent; | |
import java.io.BufferedWriter; | |
import java.io.File; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
class Template { | |
public static $vars = array(); | |
public static function bind($key, $value) { | |
self::$vars[$key] = $value; | |
} | |
public static function render($name) { | |
$contents = file_get_contents($name.".php"); |
NewerOlder