Категории: Все - html - javascript

по Qiang Guo 11 лет назад

257

SharpBlog

SharpBlog is a project designed to integrate and practice C# programming alongside HTML and Javascript development. The core functionality of the project revolves around a render engine that interprets markup text and translates it into HTML, crafting a structured blog site.

SharpBlog

SharpBlog

This project is on one part an exercise of C# and on another part exercise of HTML/Javascript (Typescript ?)

Render Engine

Implemented in C#
Act as a command line tool, for example: "sharpblog -add newpost.sb" then a new post is added, render engine will properly
Generate frame (HTML) for the blog site
Layout of site

index.html

/Script

/CSS CSS style files

/Post Store all the posts

Interpet markup text and render it as a html page

Commandline interface degisn

sharpblog -h
Administration
sharpblog -add foo.sb

What a fabulous file extention name !

sharpblog -list all/month/day/year
sharpblog -remove post_id
To remove whole site, simply delete the folder
sharpblog -create "Programming Ramble"

Markup

Grammar
Code Block
Text Property

'-' means strike-though

'/' means italic

'+' means emphasis

'_' means underline

Structure

'*' at the beginning of each line indicates the hierachy level of the paragraph. If no '*' is specified by a new graph, it's maintaining the previous level

newline is interpreted as it is

Frame (HTML)

Category/Search/Page navigation

Design a header and footer
This is the part I'm most uncomfortable