SCSArticleViewController
@interface SCSArticleViewController : UIViewController
View controller capable of displaying the contents of an article. When used in
conjunction with a navigation controller, the title
property of the view will
automatically be set to the title of the article, or nil
if no article is assigned.
Article content is automatically rendered into content capable of being displayed within this view controller. The articles data is laid out as HTML and rendered within a WKWebView instance.
HTML content is rendered using a structure like the following:
<html>
<head>
<meta name="viewport" content="initial-scale=1"/>
<link rel="stylesheet" href="/style.css" type="text/css" media="all"/>
<link rel="stylesheet" href="/article/{{article.id}}/style.css" type="text/css" media="all"/>
</head>
<body>
<header>
{{article.title}}
</header>
<main>
<field name="{{field.name}}" type="{{field.type}}">
<field-title>{{field.title}}</field-title>
<field-value>{{field.value}}</field-value>
</field>
...
</main>
<script src="/script.js"></script>
<script src="/article/{{article.id}}/script.js"></script>
</body>