LoginSignup
0
0

More than 5 years have passed since last update.

lispでhtmlとかjavascriptを生成してみる 1回目

Last updated at Posted at 2018-04-19

htmlファイル書き込みのcommon lispプログラム

環境
mac OS 10.12.6
SBCL 1.4.1

hello.lisp
(let ((out (open "./hello.html" :direction :output :if-exists :supersede)))
  (write-string
"<!DOCTYPE html>
<html lang=\"ja\">
<head>
  <meta charset=\"utf-8\">
  <title>JavaScriptの練習</title>
</head>
<body>
</body>
</html>"
  out)
   (close out))

2回目があるか分からんけどとりあえず書いてみた

参考
http://d.hatena.ne.jp/patterson/20080902/1228660192
http://www.geocities.jp/m_hiroi/xyzzy_lisp/abclisp07.html

0
0
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
0
0